{"id":1247,"date":"2011-03-26T17:31:12","date_gmt":"2011-03-26T09:31:12","guid":{"rendered":"http:\/\/blog.lolyco.com\/sean\/?p=1247"},"modified":"2011-03-26T17:31:12","modified_gmt":"2011-03-26T09:31:12","slug":"java-console-content-encoding-null-message-on-loading-applet","status":"publish","type":"post","link":"https:\/\/blog.lolyco.com\/sean\/2011\/03\/26\/java-console-content-encoding-null-message-on-loading-applet\/","title":{"rendered":"Java console &#8220;Content-Encoding: null&#8221; message on loading applet"},"content":{"rendered":"<p><a href=\"http:\/\/java.com\/\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-1248\" title=\"Sun Java\" src=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2011\/03\/splash.gif\" alt=\"Sun Java\" width=\"320\" height=\"139\" srcset=\"https:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2011\/03\/splash.gif 320w, https:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2011\/03\/splash-300x130.gif 300w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/a>I thought at first glance this might be an error in an website I&#8217;m working on, so looked into it a little bit further &#8211; turns out it&#8217;s nothing at all.<\/p>\n<p>I turned on request debugging in Spinneret and could see that the Sun Java plugin in FireFox was sending the request header:<\/p>\n<p><code>accept-encoding: pack200-gzip, gzip<\/code><\/p>\n<p>&#8230; so perhaps it felt obliged to point out that there was no Content-Encoding specified in the response. I don&#8217;t set a Content-Encoding header for the response, as it&#8217;s not encoded. As far as I can see there&#8217;s no need to encode the response I&#8217;m sending &#8211; it&#8217;s a jar file, so it&#8217;s already in Zip format &#8211; compressing it again would probably make it bigger. I can&#8217;t help thinking though that the message shouldn&#8217;t be there at all if unencoded responses (<a title=\"W3 HTTP Header Fields: Accept-Encoding\" href=\"http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec14.html#sec14.3\">identity encoding<\/a>) really are OK.<\/p>\n<p>It&#8217;s nice to see that the Java developers have taken the Header Field spec at face value and are sending all lower-case field names in requests from the plugin. I wonder if that ever catches out anybody who expects Initial-case or Camel-Case header field names?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I thought at first glance this might be an error in an website I&#8217;m working on, so looked into it a little bit further &#8211; turns out it&#8217;s nothing at all. I turned on request debugging in Spinneret and could see that the Sun Java plugin in FireFox was sending the request header: accept-encoding: pack200-gzip, [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,45,64],"tags":[41,33,34,18,105,57],"class_list":["post-1247","post","type-post","status-publish","format-standard","hentry","category-software","category-spinneret","category-useful","tag-http","tag-java","tag-network","tag-server","tag-software","tag-web"],"_links":{"self":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/1247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/comments?post=1247"}],"version-history":[{"count":2,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/1247\/revisions"}],"predecessor-version":[{"id":1250,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/1247\/revisions\/1250"}],"wp:attachment":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/media?parent=1247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/categories?post=1247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/tags?post=1247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}