Happy birthday

Posted in wordpress (May 17, 2007 at 1:18 am)

Off The Record (ok, the name sucks) is 1 year old today.  Wow.

How did I find this out? Someone randomly suggested it might be Prof Eric’s birthday today, and I mentioned it last year.  (On a different date however).  Pretty cool co-incidence though.

How did I confirm it? I was asked to enter my username and password to post this,  so I guess Wordpress cookies have a 1 year lifetime.

Wordpress header bug: Chunked encoding causes some aggregators to hate you

Posted in wordpress (April 27, 2007 at 1:13 am)
  • 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 with curl, and not with feedvalidator?
  • Are you running PHP 5.2.1?

If you answered ‘yes’ to these questions, you have this Wordpress HTTP/1.0 causing chunked encoding bug. Thanks to Phil and John for identifying it.

<kinko> 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
<kinko> so wget should at least give a warning message that it got an invalid response to a http1.0 request, instead of breaking :)
<alastair> I hope you didn’t strace wget there, kinko…
<meanphil> strace(or ktrace on fbsd) + tcpdump are the only tools you ever need to debug anything