Redirects and headers

HTTP is unclear as to which headers part of the original request are to be  
preserved in the request to the new URL. E.g. the specification for the  
EventSource object (server-sent events) says that implementations are to  
follow redirects. It also says they have to include a Cache-Control header  
in the original request. Is this header included in subsequent redirected  
requests? Are headers set via setRequestHeader() in XMLHttpRequest  
included in subsequent redirected requests?

It would be good I think if the HTTP specification talked about this in  
the 3xx section.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Tuesday, 28 June 2011 08:49:36 UTC