cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: problems with digest authentication

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 26 Feb 2007 23:01:32 +0100 (CET)

On Mon, 26 Feb 2007, jose+curl_at_w3.org wrote:

Hejsan Jose!

> CURL seems to have problems parsing the following answer sent from a
> Jigsaw server while accessing a digest-authentication protected resource:

> (0xb6) 0000: WWW-Authenticate: Digest realm="W3CACL",
> domain="/Archives/Team/ 0040: w3t", qop="auth",
> nonce="286ce50c3b914571799e56c2dfcacac1", opaq 0080:
> ue="8de32880edc1164f0cfa28da3cf2e318", algorithm=MD5

Thanks! The problem turned out to be the final words of that line:
algorithm=MD5 - no quotes and CRLF immediately following the '5'. I just fixed
that and committed:

   http://cool.haxx.se/cvs.cgi/curl/lib/http_digest.c.diff?r1=1.28&r2=1.29

With that fix, curl continues a bit further but still gets a 401 back and
bails out.

I'm not sure if that command line was actually supposed to work, but my
Firefox seems to pop up the auth question over and over...

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-02-26