Thursday, March 13, 2008

IT Conversations Premium Editions and wget

The new premium editions of the IT Conversations shows are great, but I couldn't download them using wget, e.g.:

$ wget|email/ITC.Rails-TimBray-2007.05.19.mp3

           => `username'
Connecting to||:80... connected.
HTTP request sent, awaiting response... 404 Not Found
14:27:32 ERROR 404: Not Found.

The problem was caused by the | character separating the username and email address in the personalised URL. "URL encoding" this to "%7C" fixed the problem.