Subject: | Host header not updated for redirects |
POE::Component::Client::HTTP 0.57
Perl 5.6.1
Linux 2.4.19
The host header is apparently not updated for redirects. If FollowRedirects is set to 1, and we post a HTTP::Request(GET => 'http://google.com/'),
Initial request (unimportant details removed):
GET http://google.com/
Host: google.com
Redirected request:
GET http://www.google.com/
Host: google.com
The host remains google.com even though the URI in the GET line has changed. The end result of this is that one gets an unending (limited by FollowRedirects) series of 302 responses, instead of a 200 OK response on the first redirect.
Jeff