cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Digest authentication fails

From: Georg Hubik <curllib_at_gmail.com>
Date: Wed, 27 Jun 2007 15:36:17 +0200

Thanks Daniel,

I've compiled the lastests curl, but the result is kind of the same. The
authorisation fails again (based on the content of the obtained page).
Please see the output:

=== Begin ===
./curl --digest -u 'adminr:admin' -v http://10.1.0.106/Login
* About to connect() to 10.1.0.106 port 80 (#0)
* Trying 10.1.0.106... connected
* Connected to 10.1.0.106 (10.1.0.106) port 80 (#0)
* Server auth using Digest with user 'admin'
> GET /Login HTTP/1.1
> User-Agent: curl/7.16.2 (i686-pc-linux-gnu) libcurl/7.16.2 OpenSSL/0.9.7a
zlib/1.2.1.1
> Host: 10.1.0.106
> Accept: */*
>
< HTTP/1.1 401 Authorization Required
< WWW-Authenticate: Digest realm="xyz",
nonce="7597a14b4dade2441e203f6c165254aa",
opaque="e8fd8857310122a4752f656a3e2d80aa", stale=FALSE, algorithm=MD5,
qop="auth"
< Content-Type: text/html
<
* Connection #0 to host 10.1.0.106 left intact
* Issue another request to this URL: 'http://10.1.0.106/Login'
* Re-using existing connection! (#0) with host 10.1.0.106
* Connected to 10.1.0.106 (10.1.0.106) port 80 (#0)
* Server auth using Digest with user 'admin'
> GET /Login HTTP/1.1
> Authorization: Digest username="admin", realm="xyz",
nonce="7597a14b4dade2441e203f6c165254aa", uri="/Login", cnonce="MTE4Mjk1",
nc=00000001, qop="auth", response="2767e7ef662f0ee8813e1fcc8f951baa",
opaque="e8fd8857310122a4752f656a3e2d80aa", algorithm="MD5"
> User-Agent: curl/7.16.2 (i686-pc-linux-gnu) libcurl/7.16.2 OpenSSL/0.9.7a
zlib/1.2.1.1
> Host: 10.1.0.106
> Accept: */*
>
<http>
...
=== End ===

Do you see something strange there? Any idea what else could be wrong? Could
also the ssl and zlib versions have any influence?

Best regards

G.

2007/6/25, Daniel Stenberg <daniel_at_haxx.se>:
>
> On Mon, 25 Jun 2007, Georg Hubik wrote:
>
> > but when I use my program, authentication fails. The same result I get
> using
> > cutl from the command line:
>
> [...]
>
> > User-Agent: curl/7.11.1 (i386-redhat-linux-gnu) libcurl/7.11.1
>
> [...]
>
> > Any idea what is wrong in here?
>
> Yes, using a curl version released over three years ago. We've fixed
> several
> Digest bugs since (and a few others).
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2007-06-27