Basic Authentications

43 views
Skip to first unread message

Simbul

unread,
May 4, 2011, 8:01:38 AM5/4/11
to Siege Users
Hi,
I've a very rare problem, becouse when I used siege in normal mode its
all ok, but when I try to use siege with authenticated uris, it can't
get all.

In siegerc file (/etc/siege/siegerc) and home siege file (/
root/.siegerc) I write this:
login = user:password

And then when I check the log, I see this:
Nginx log:
Ok, in this row use the username.
111.111.111.111 - user [04/May/2011:13:32:24 +0200] "GET /xxxx/yyyyyy/
zzzz/aaaaa/bbbb/cccc/dddd.do?tag= HTTP/1.1" 200 4619 "-" "JoeDog/1.00
[en] (X11; I; Siege 2.66)"
And in this row no.
111.111.111.111 - - [04/May/2011:13:32:20 +0200] "GET /xxxx/yyyyyy/
zzzz/aaaaa/bbbb/cccc/dddd.do?tag= HTTP/1.1" 401 1089 "-" "JoeDog/1.00
[en] (X11; I; Siege 2.66)"
...this is the same uri!!

And in siege log:

OK:
client.c:251 new_socket: ffff.gggg.hhh:80
client.c:267 connection made: 7
GET /xxxx/yyyyyy/zzzz/aaaaa/bbbb/cccc/dddd.do?tag= HTTP/1.1
Host: ffff.gggg.hhh
Authorization: Basic dmRvczp4dXRpNFBoaQ==
Accept: */*
Accept-Encoding: gzip
User-Agent: JoeDog/1.00 [en] (X11; I; Siege 2.66)
Connection: close


HTTP/1.1 200 OK
Server: nginx/0.6.32
Date: Wed, 04 May 2011 11:30:57 GMT
Content-Type: text/html;charset=ISO-8859-1
Transfer-Encoding: chunked
Connection: close
Set-Cookie: JSESSIONID=C718DFBC788E26E0ACC6ED9FC6C23D9B; Path=/
Set-Cookie: JSESSIONID=C718DFBC788E26E0ACC6ED9FC6C23D9B; Path=/
p3p: CP="NOI DEVa TAIa OUR BUS UNI STA OTC"
Content-Encoding: gzip


FAIL:
attempting connection to ffff.gggg.hhh:80

client.c:251 new_socket: ffff.gggg.hhh:80
client.c:267 connection made: 15
GET /xxxx/yyyyyy/zzzz/aaaaa/bbbb/cccc/dddd.do?tag= HTTP/1.1
Host: ffff.gggg.hhh
Accept: */*
Accept-Encoding: gzip
User-Agent: JoeDog/1.00 [en] (X11; I; Siege 2.66)
Connection: close
HTTP/1.1 401 Unauthorized
Server: nginx/0.6.32
Date: Wed, 04 May 2011 11:30:56 GMT
Content-Type: text/html
Content-Length: 1089
Connection: close
WWW-Authenticate: Basic realm="ASP QFSI"


I don't understand why ocurrs... I read the manualm, the FAQ, I try
many things... but I can't resolve this problem.
Could you please help me?

Thanks!

Jeff

unread,
May 4, 2011, 8:20:02 AM5/4/11
to Siege Users
It's not clear what's happening. On the good response (HTTP_200), you
send an Authorization challenge. On the second request, you don't send
a response. Normally, I'd say that's because your realm doesn't match.
But when you don't set a realm, it sends an Authorization to every
response. Is it possible you have a global siegerc file and a
$HOME/.siegerc file and you're not using the configuration you think
you are?

What happens if you add a realm? login=user:pass:ASP QFSI

Reply all
Reply to author
Forward
0 new messages