RE: fail to redirect

"Ted Behling" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
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: [email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.