Current http.c does not follow 302 Location redirections at all. I tracked down the problem down to the handle_transaction() function.
 
If we leave trans->host and trans->port set there, there will be no parse_url() for the redirection, and the original url is fetched again and again :-(
 
Attached is a patch that fixes it.
 
I've created a bug report in mantis anyway.
 
Angel Fradejas
Mediafusión España, S.A.
[EMAIL PROTECTED]
www.mediafusion.es
Tel. +34 91 252 32 00
Fax +34 91 572 27 08

Attachment: http_redirection_fix.diff
Description: Binary data

Reply via email to