{"id":111,"date":"2007-04-27T12:13:48","date_gmt":"2007-04-27T00:13:48","guid":{"rendered":"http:\/\/craig.dubculture.co.nz\/blog\/2007\/04\/27\/wordpress-header-bug-chunked-encoding-causes-some-aggregators-to-hate-you\/"},"modified":"2007-05-22T20:10:09","modified_gmt":"2007-05-22T08:10:09","slug":"wordpress-header-bug-chunked-encoding-causes-some-aggregators-to-hate-you","status":"publish","type":"post","link":"http:\/\/craig.dubculture.co.nz\/blog\/2007\/04\/27\/wordpress-header-bug-chunked-encoding-causes-some-aggregators-to-hate-you\/","title":{"rendered":"WordPress header bug: Chunked encoding causes some aggregators to hate you"},"content":{"rendered":"<ul>\n<li>Are people telling you your WordPress site isn't aggregating properly? (Do you <a href=\"wp-rss2.php\">check the output<\/a>, see the RSS is fine, and think they must be mad?<\/li>\n<li>Do you check the feed and see a weird 4 bytes on the top of it, and possibly a 0\\r\\n at the end, but only with wget - not with curl, and not with <a href=\"http:\/\/feedvalidator.org\/\">feedvalidator<\/a>?<\/li>\n<li>Are you running PHP 5.2.1?<\/li>\n<\/ul>\n<p>If you answered 'yes' to these questions, you have this <a href=\"http:\/\/trac.wordpress.org\/ticket\/3886\">WordPress HTTP\/1.0 causing chunked encoding<\/a> bug.  Thanks to Phil and John for identifying it.<br \/>\n<tt><br \/>\n&lt;kinko&gt; write(3, \"GET \/blog\/wp-rss2.php HTTP\/1.0\\r\\nUser-Agent: Wget\/1.10.2\\r\\nAccept: *\/*\\r\\nHost:  craig.dubculture.co.nz\\r\\nConnection: Keep-Alive\\r\\n\\r\\n\", 126) = 126<br \/>\n&lt;kinko&gt; so wget should at least give a warning message that it got an invalid response to a http1.0 request, instead of breaking \ud83d\ude42<br \/>\n&lt;alastair&gt; I hope you didn't strace wget there, kinko...<br \/>\n&lt;meanphil&gt; strace(or ktrace on fbsd) + tcpdump are the only tools you ever need to debug anything<br \/>\n<\/tt><\/p>\n<p>(Note: fixed in WordPress 2.2.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are people telling you your WordPress site isn't aggregating properly? (Do you check the output, see the RSS is fine, and think they must be mad? Do you check the feed and see a weird 4 bytes on the top of it, and possibly a 0\\r\\n at the end, but only with wget - not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[66],"tags":[21],"_links":{"self":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts\/111"}],"collection":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/comments?post=111"}],"version-history":[{"count":0,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts\/111\/revisions"}],"wp:attachment":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/media?parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/categories?post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/tags?post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}