18

I get the following HTTP response headers in a particular response. All looks okay. However I have noticed that the content-length appears twice...

Content-Length: 2424 ntCoent-Length: 2424

Is there a particular reason why the content-length is returned a second time as ntCoent-Length?

 HTTP/1.0 200 OK Date: Wed, 26 May 2010 09:38:19 GMT Server: Apache P3P: CP="NOI DSP COR CURa ADMa TA1a OUR BUS IND UNI COM NAV INT" Accept-Charset: iso-8859-1, unicode-1-1;q=0.8 Expires: Sun, 15 Jul 1990 00:00:00 GMT Pragma: no-cache Cache-Control: no-cache Content-Language: en ntCoent-Length: 2424 Connection: close Content-Type: text/html;charset=iso-8859-1 Content-Length: 2424 

4 Answers 4

18

The comments in https://basildoncoder.com/blog/turbocharging-net-webservice-clients.html say the jumbled ntCoent-Length header contains the uncompressed size of the response.

You should see the Content-Length is smaller than ntCoent-Length in cases where Content-Encoding:gzip or similar

Sign up to request clarification or add additional context in comments.

5 Comments

Thats is what I thought it was used for. Good to get it clarified. Is this common practice?
I cant find this documented in any RFC, though it shows in all response headers.
It seems to be a trick hardware load balancers use to allow it to "discard" the header without having to recalculate the TCP and IP checksum of the packet by shuffling the characters in the header name so someone doesn't write support for this "new header".
Link seems to be dead now
The link is now fixed.
3

FYI, HTTP headers from some clients have characters randomly replaced gives other examples of letter transposition in http headers.

Comments

0

I'm seeing a munged ntCoent-Length header without the correct version being present. The lack of a valid Content-Length is causing Mule ESB to throw an error out of the HTTP connector. Very annoying. I'm hoping our network team can control this with some Netscaler configuration.

Comments

0

If you are using Citrix ADC/NetScaler, it invalidates the HTTP header Content-Length when a rewrite is used in a response. For more info, check https://support.citrix.com/article/CTX211605

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.