Re: Relative ordering of fields in HTTP request

On Thu, 2003-11-06 at 05:55, Jeffrey Mogul wrote:
>    The order in which header fields with differing field names are
>    received is not significant. 
> 
> and so it is definitely legal to reorder (for example)
> 
> 	Accept: text/plain
> 	Connection: close
> 
> to become
> 
> 	Connection: close
> 	Accept: text/plain
> 

While it's legal, we've found that some firewalls expect certain headers
within the first X Kb, or the first tcp data payload, and reject or drop
requests if they aren't there. (I don't recall the specific headers
offhand - it's in the squid bugzilla if you're interested). We recently
fixed squid to not reorder headers that we received, to keep the early
headers at the start of the request transmission as the client hands to
us - allowing debugging of clients and more predictable behaviour.

Rob

-- 
GPG key available at: <http://members.aardvark.net.au/lifeless/keys.txt>.

Received on Wednesday, 5 November 2003 15:37:57 UTC