- From: Karl Dubost <karl@la-grange.net>
- Date: Thu, 28 Feb 2013 09:05:17 -0500
- To: Julian Reschke <julian.reschke@gmx.de>
- Cc: Anne van Kesteren <annevk@annevk.nl>, Mark Nottingham <Mnot@mnot.net>, www-archive <www-archive@w3.org>
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/
Received on Thursday, 28 February 2013 14:05:26 UTC