Re: HTTP redirects

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 UTC