#840 HTTP reuse + redirect + auth bug

closed-fixed
http (203)
5
2014-08-16
2009-06-27
No

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

Discussion

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

     
    • status: open --> closed-fixed