cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2813123 ] HTTP reuse + redirect + auth bug

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 08 Jul 2009 07:00:56 +0000

Bugs item #2813123, was opened at 2009-06-27 05:05
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2813123&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: http
Group: wrong behaviour
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Constantine Sapuntzakis (csapuntz)
Assigned to: Daniel Stenberg (bagder)
Summary: HTTP reuse + redirect + auth bug

Initial Comment:
Fix attached.

Behavior seen (with curl_multi - may happen with easy too):

Url A is accessed using auth. Url A redirects to Url B (on a different server0. Url B reuses a persistent connection. Url B has auth, even though it's on a different server.

Note: if Url B does not reuse a persistent connection, auth is not sent.

reason:

data->state.first_host is not initialized becuase Curl_http_connect is not called when a connection is reused.

Solution:

move initialization of data->state.first_host to Curl_http. No code before Curl_http uses data->state.first_host anyway.

Patch might also fix issue at http://curl.haxx.se/mail/lib-2009-04/0354.html

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2009-07-08 09:00

Message:
Thanks for the report, this problem is now fixed in CVS!

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2813123&group_id=976
Received on 2009-07-08

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET