curl-users
problems with digest authentication
Date: Mon, 26 Feb 2007 16:55:00 +0100
Hi!
CURL seems to have problems parsing the following answer sent from a
Jigsaw server while accessing a digest-authentication protected resource:
== Info: Authentication problem. Ignoring this.
<= Recv header, 182 bytes (0xb6)
0000: WWW-Authenticate: Digest realm="W3CACL", domain="/Archives/Team/
0040: w3t", qop="auth", nonce="286ce50c3b914571799e56c2dfcacac1", opaq
0080: ue="8de32880edc1164f0cfa28da3cf2e318", algorithm=MD5
I've the problem with curl (debian stable package), and also with the
latest curl (7.16.1) compiled from the tgz.
I am using curl from the command line,:
/curl --trace-ascii /tmp/trace.txt --user username:password --digest
http://lists.w3.org/Archives/Team/w3t/2007Feb/
CURL returns the 401, but doesn't go further ahead in the process. If I
try accesing another dig-authentication protected resource, but served
by an Apache 2.2.x server, it works as expected:
0000: WWW-Authenticate: Digest realm="W3CACL", nonce="5vDW/PopBAA=bdbd
0040: 3955f430e765fef0f916077bf2d926328246", algorithm=MD5, qop="auth"
The http_digest.c file has code to take into account "opaque".
Any idea what the problem may be here?
Thanks!
-jose
p.s. Hejsan Daniel!
Received on 2007-02-26