The 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
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 03, 2007 11:45 PM
To: libwww@perl.org
Cc: [EMAIL PROTECTED]
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



Reply via email to