- Code, Content, and Presentation
-- Perl Server Side CGI Scripting
---- HTTP Status Headers
- 9:26 pm on Jul 9, 2013
When you add a Content-Type header to a redirect, it considers the 302 to be a html page- no redirect is performed.
according to the HTTP specification an HTML response is suggested with a 302 status code:
Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).
Brought to you by