{"id":2372,"date":"2017-10-27T21:44:34","date_gmt":"2017-10-27T20:44:34","guid":{"rendered":"https:\/\/davidkeen.com\/blog\/?p=2372"},"modified":"2025-10-23T10:09:45","modified_gmt":"2025-10-22T23:39:45","slug":"jumbled-headers","status":"publish","type":"post","link":"https:\/\/davidkeen.com\/blog\/2017\/10\/jumbled-headers\/","title":{"rendered":"Jumbled Headers"},"content":{"rendered":"\n<p>Have you ever noticed misspelled HTTP response headers?<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>$ http -h http:\/\/www.dmoz.org\/Computers\/Programming\/Languages\/Python\/Books\/\nHTTP\/1.1 200 OK\nConnection: close\nContent-Encoding: gzip\nContent-Language: en\nContent-Length: 9907\nContent-Type: text\/html;charset=UTF-8\nCteonnt-Length: 33416\nDate: Tue, 12 Apr 2016 12:26:06 GMT\nServer: Apache<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">$<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">http<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">-h<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">http:\/\/www.dmoz.org\/Computers\/Programming\/Languages\/Python\/Books\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">HTTP\/1.1<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">OK<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">Connection:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">close<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">Content-Encoding:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">gzip<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">Content-Language:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">en<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">Content-Length:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">9907<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">Content-Type:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">text\/html<\/span><span style=\"color: #81A1C1\">;<\/span><span style=\"color: #D8DEE9\">charset<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #A3BE8C\">UTF-8<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">Cteonnt-Length:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">33416<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">Date:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">Tue,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">12<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">Apr<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">2016<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">12<\/span><span style=\"color: #A3BE8C\">:26:06<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">GMT<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">Server:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">Apache<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>That &#8216;Cteonnt-Length&#8217; sure looks weird!<\/p>\n\n\n\n<p>According to <a href=\"https:\/\/stackoverflow.com\/a\/2942306\/1923852\">this StackOverflow answer<\/a>, the jumbled header contains the uncompressed size of the response and, sure enough, it does seem to be the case. But why?<\/p>\n\n\n\n<p>It seems like this is a trick employed by hardware appliances (eg Citrix NetScaler) to &#8216;remove&#8217; a header without affecting the check-sum value.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever noticed misspelled HTTP response headers? That &#8216;Cteonnt-Length&#8217; sure looks weird! According to this StackOverflow answer, the jumbled header contains the uncompressed size of the response and, sure enough, it does seem to be the case. But why? It seems like this is a trick employed by hardware appliances (eg Citrix NetScaler) to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2573,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[25],"tags":[],"class_list":["post-2372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/davidkeen.com\/blog\/wp-content\/uploads\/2017\/10\/pexels-photo-278887.jpeg?fit=1280%2C913&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/posts\/2372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/comments?post=2372"}],"version-history":[{"count":9,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/posts\/2372\/revisions"}],"predecessor-version":[{"id":2840,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/posts\/2372\/revisions\/2840"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/media\/2573"}],"wp:attachment":[{"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/media?parent=2372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/categories?post=2372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/tags?post=2372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}