curl-users
[ curl-Bugs-409696 ] basic auth info not sent on redirect
Date: Mon, 19 Mar 2001 04:11:48 -0800
Bugs item #409696, was updated on 2001-03-19 04:11
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=409696&group_id=976
Category: http
Group: wrong behaviour
Status: Open
Priority: 5
Submitted By: Edin Kadribaic (edink)
Assigned to: Daniel Stenberg (bagder)
Summary: basic auth info not sent on redirect
Initial Comment:
In the latest CVS version of curl the basic
authentication is not sent if you use the form:
curl -L -
i "http://user:pass@194.68.213.78/se/info.nsf/CurrentNe
ws/4DFE3BDC620F90DBC1256A140023EF8B?Navigate&To=Next"
HTTP/1.1 302 Found
Server: Lotus-Domino/5.0.5
Date: Mon, 19 Mar 2001 12:05:38 GMT
Location:
http://194.68.213.78/se/info.nsf/51f8f7a45e6ab5d6c22567
78004f011a/a5ed116f4cd23098c1256a11003c735f?
OpenDocument
Connection: close
Content-Type: text/html; charset=US-ASCII
Content-Length: 229
HTTP/1.1 401 Unauthorized
Server: Lotus-Domino/5.0.5
Date: Mon, 19 Mar 2001 12:05:39 GMT
Connection: close
Content-Type: text/html; charset=US-ASCII
Content-Length: 293
Expires: Tue, 01 Jan 1980 06:00:00 GMT
WWW-Authenticate: Basic realm="/se"
Cache-control: no-cache
As you can see, two sets of headers are returned. If I
try another way of specifying username and password I
get the correct page back, but again with 2 sets of
headers:
curl -L -i -
u "user:pass" "http://194.68.213.78/se/info.nsf/Current
News/4DFE3BDC620F90DBC1256A140023EF8B?Navigate&To=Next"
HTTP/1.1 302 Found
Server: Lotus-Domino/5.0.5
Date: Mon, 19 Mar 2001 12:10:28 GMT
Location:
http://194.68.213.78/se/info.nsf/51f8f7a45e6ab5d6c22567
78004f011a/a5ed116f4cd23098c1256a11003c735f?
OpenDocument
Connection: close
Content-Type: text/html; charset=US-ASCII
Content-Length: 229
HTTP/1.1 200 OK
Server: Lotus-Domino/5.0.5
Date: Mon, 19 Mar 2001 12:10:28 GMT
Connection: close
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 8706
<html>
...
...
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=409696&group_id=976
Received on 2001-03-19