RE: fail to redirect
am 04.01.2007 16:50:14 von ted.behlingThe way I read RFC 2616 (HTTP/1.1), I don't think it's compliant
behavior to specify multiple Location headers. Everywhere that header
is mentioned in the text, it's in the singular, as in:
10.3.2 301 Moved Permanently
...
The new permanent URI SHOULD be given by the Location field in
the response.
HTH.
Ted Behling
Hargray Communications
ted.behling@htc.hargray.com
-----Original Message-----
From: biz@kiwi.ne.jp [mailto:biz@kiwi.ne.jp]=20
Sent: Wednesday, January 03, 2007 11:45 PM
To: libwww@perl.org
Cc: biz@kiwi.ne.jp
Subject: bug: fail to redirect
Hellow.
This is a bug report.
Version: libwww-perl.5.805-1.1.1
If a http server send you 'Moved Temporarily' and it's headers have same
plural locations, you cannot redirect to a proper location.
for example, when you read locations like
'Location',
'/new/location.html',
'Location',
'/new/location.html',
,the result uri will be
'http://base/new/location.html,%20/new/location.html'.
Is it not standard that a http server makes a reply with many locations
?
But, such a server does exist.
Bye.
YAMAMOTO Tetsuya