Wed 7 October 2015
I set up a little test page like:
where js.cgi outputs text like:
so that I could test whether the code for a given Content-Type and status got executed.
With the 3xx test, I returned the content exactly the same as for a 2xx response, including the lack of a Location header, just to see how the browsers would react.
Neither browser executed code for 1xx statuses, or for 6xx.
Both browsers executed code for completely fictitious statuses, as long as they fell in 2xx (or 3xx for Chrome) such as 293.
I found all this interesting. If you can shed more light on it, please give us a shout.
Cheers.If you like my blog, please consider subscribing to the RSS feed or the mailing list: