Two Location Headers
Update! 2/24/2012 I found out that the latest versions of Firefox and Chrome now give error messages instead of preferring the first or second header. This is probably the safest way to handle the situation, since this trick can really only be used for evil }:)
Where does your browser send you when the HTTP Response contains two location headers?
[code autolinks="false"]HTTP/1.1 302
Found Date: Fri, 04 Mar 2011 20:58:17 GMT
Server: Apache
Location: http://www.yahoo.com
Location: http://www.google.com
[/code]
BROWSER | REDIRECTION |
---|---|
FIREFOX > 7 | ERROR |
CHROME ≥ 16 | ERROR |
CHROME < 16 | YAHOO |
SAFARI 5.1 | YAHOO |
INTERNET EXPLORER 6/7/8 | YAHOO |
OPERA 11.01 | YAHOO |
OPERA MINI ON IPHONE | YAHOO |
FIREFOX 3.6.15 TO 6.0 | |
SAFARI 5.0.3 | |
MOBILE SAFARI IOS 4.3.5 | |
MOBILE FIREFOX FOR ANDROID | |
HP TOUCHPAD (WEBOS) |