cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Digest auth fails after 5 minuts of idling

From: mitz wark <peb_p2000_at_yahoo.com>
Date: Tue, 30 Mar 2004 16:10:28 -0800 (PST)

Daniel Stenberg <daniel-curl_at_haxx.se> wrote: Attached here is my first stab at fixing this. Let me know how it works, and
if it still fails, please show me one of those nice dumps again!

Hi Daniel,
 
I patched the code against 7.11.1, and run the test.
I can tell some subtle difference in the output, however, I am still getting the 401.
Is it possible? I'm not sure if it'll help to know but the server has WebDAV enabled.
Thank you,
mtz
 
=============== output ==================
 
* About to connect() to server01 port 81
* Connected to server01 (192.168.65.36) port 81
> GET /digest/proxy.htm HTTP/1.1
Host: server01:81
Pragma: no-cache
Accept: */*
< HTTP/1.1 401 Authorization Required
< Date: Tue, 30 Mar 2004 23:48:36 GMT
< Server: Apache/2.0.48 (Unix) DAV/2
< WWW-Authenticate: Digest realm="DAV_Area_Digest", nonce="avJR3uHWAwA=f4bb24f0b
e9e098a598e0bf049df82dc754bc70d", algorithm=MD5, qop="auth"
< Content-Length: 482
< Content-Type: text/html; charset=iso-8859-1
* Ignoring the response-body
* Connection #0 left intact
* Issue another request to this URL: 'http://server01:81/digest/proxy.htm'
* Re-using existing connection! (#0)
* Connected to (192.168.65.36) port 81
* Server auth using Digest with user 'user'
> GET /digest/proxy.htm HTTP/1.1
Authorization: Digest username="user", realm="DAV_Area_Digest", nonce="avJR3uHW
AwA=f4bb24f0be9e098a598e0bf049df82dc754bc70d", uri="/digest/proxy.htm", resp
onse="fae6f74016e4f91ebadcb6fe9f727517"
Host: server01:81
Pragma: no-cache
Accept: */*
< HTTP/1.1 200 OK
< Date: Tue, 30 Mar 2004 23:48:36 GMT
< Server: Apache/2.0.48 (Unix) DAV/2
< Authentication-Info: rspauth="d88cc26ff96316774c95ca507780b36b"
< Last-Modified: Wed, 17 Mar 2004 09:47:22 GMT
< ETag: "27e7c-167-99e57e80"
< Accept-Ranges: bytes
< Content-Length: 359
< Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>proxy</title>
</head>
<body>
fffvia proxy<img src="images/Winter.jpg" width="80" height="60" hspace="0" vspac
e="0" align="default">
</body>
</html>
* Connection #0 left intact

*** result = 0 ***
* Connection 0 seems to be dead!
* Closing connection #0
* About to connect() to server01 port 81
* Connected to server01 (192.168.65.36) port 81
* Server auth using Digest with user 'user'
> GET /digest/proxy.htm HTTP/1.1
Authorization: Digest username="user", realm="DAV_Area_Digest", nonce="avJR3uHW
AwA=f4bb24f0be9e098a598e0bf049df82dc754bc70d", uri="/digest/proxy.htm", resp
onse="fae6f74016e4f91ebadcb6fe9f727517"
Host: server01:81
Pragma: no-cache
Accept: */*
< HTTP/1.1 401 Authorization Required
< Date: Tue, 30 Mar 2004 23:53:36 GMT
< Server: Apache/2.0.48 (Unix) DAV/2
* Authentication problem. Ignoring this.
< WWW-Authenticate: Digest realm="DAV_Area_Digest", nonce="Zcoz8OHWAwA=8996b1947
20d6f84632748e3adea09a537c8435c", algorithm=MD5, stale=true, qop="auth"
< Content-Length: 482
< Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr />
<address>Apache/2.0.48 (Unix) DAV/2 Server at server01 Port 81</address>
</body></html>
* Connection #0 left intact

*** result = 0, httpcode = 401 ***
press any key to quit.
 

---------------------------------
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
Received on 2004-03-31