- From: Julian Reschke <julian.reschke@gmx.de>
- Date: Wed, 27 Feb 2013 21:27:32 +0100
- To: Karl Dubost <karl@la-grange.net>
- CC: Anne van Kesteren <annevk@annevk.nl>, Mark Nottingham <Mnot@mnot.net>, www-archive <www-archive@w3.org>
On 2013-02-27 21:15, Karl Dubost wrote:
> Julian,
>
> Le 27 févr. 2013 à 13:55, Julian Reschke a écrit :
>> I think it would be great if UAs would converge in ignoring broken header fields like these.
>
>
>
> # Apache Configuration
>
> On the server side, Apache behaves well, if you try to set multiple location, it takes the *last one*.
>
> <files from.txt>
> Header set Location "http://github.com/http2"
> Header set Location "http://www.w3.org/"
> </files>
>
>
> # Server Code
>
> I have created a small test server using python.
>
> =======================================
> #!/usr/bin/env python3.3
>
> import http.server
>
>
> class Httphandler(http.server.BaseHTTPRequestHandler):
> "class"
> def do_GET(self):
> self.send_response(301)
> self.send_header('Location', 'http://www.w3.org/')
> self.send_header('Location', 'https://github.com/karlcow/')
> self.end_headers()
> self.wfile.write('Response body\n')
> return
>
> if __name__ == '__main__':
> addr = ('', 9000)
> http.server.HTTPServer(addr, Httphandler).serve_forever()
> ========================================
>
> So the server is sending:
>
> HTTP/1.0 301 Moved Permanently
> Server: BaseHTTP/0.6 Python/3.3.0
> Date: Wed, 27 Feb 2013 20:06:51 GMT
> Location: http://www.w3.org/
> Location: http://www.github.com/karlcow/
>
> # Browsers Results
>
> * Firefox 20 Corrupted Content Error
Even better. If FF can get away with that, the others should try as well.
> ...
Best regards, Julian
Received on Wednesday, 27 February 2013 20:28:02 UTC