W3C home > Mailing lists > Public > www-archive@w3.org > March 2013

Re: HTTP redirects

From: Mark Nottingham <Mnot@mnot.net>
Date: Fri, 1 Mar 2013 12:34:41 +1100
Cc: Julian Reschke <julian.reschke@gmx.de>, Anne van Kesteren <annevk@annevk.nl>, www-archive <www-archive@w3.org>
Message-Id: <FCB16AD6-96A8-4DDF-9F80-C232BEC207FB@mnot.net>
To: Karl Dubost <karl@la-grange.net>
Hey Karl,

If you think that we can come to an agreement (amongst the browsers as well as other clients), I'm happy to reopen the issue during WGLC. However, we'd need to have good representation in the discussion on the mailing list.

Cheers,


On 01/03/2013, at 1:05 AM, Karl Dubost <karl@la-grange.net> wrote:

> An additional test using
> 
> ======================================================
> #!/usr/bin/env python3.3
> import http.server
> 
> 
> class HTTPHandler(http.server.BaseHTTPRequestHandler):
>    "A very simple server"
>    def do_GET(self):
>        self.send_response(301)
>        self.send_header('Content-type', 'text/plain')
>        self.send_header('Location', 'http://www.w3.org/, https://github.com/karlcow')
>        self.end_headers()
>        self.wfile.write(bytes('Response body\n\n', 'latin1'))
> 
> if __name__ == '__main__':
>    addr = ('', 9000)
>    http.server.HTTPServer(addr, HTTPHandler).serve_forever()
> ======================================================
> 
> Generating one Location header with two URIs (aka comma separated values)
> 
> 
> ======================================================
> HTTP/1.0 301 Moved Permanently
> Server: BaseHTTP/0.6 Python/3.3.0
> Date: Thu, 28 Feb 2013 13:58:41 GMT
> Content-type: text/plain
> Location: http://www.w3.org/, https://github.com/karlcow
> 
> Response body
> 
> ======================================================
> 
> 
> # Browsers Results
> 
> * Firefox 20     redirects to
>                  "http://www.w3.org/,%20https:/github.com/karlcow" 
>                 which is a document NOT found
> * Safari  6.0.2  redirects to
>                  "http://www.w3.org/,%20https:/github.com/karlcow" 
>                 which is a document NOT found
> * Opera   12.14  Redirects to http://www.w3.org/
> * Curl    7.21.4 Redirects to http://www.w3.org/
> 
> 
> 
> -- 
> Karl Dubost
> http://www.la-grange.net/karl/
> 

--
Mark Nottingham   http://www.mnot.net/
Received on Friday, 1 March 2013 01:35:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 1 March 2013 01:35:10 GMT