Maybe you're better off using something heavy like WWW::Mechanize. Then you probably don't have to figure out why you're getting a 404 (hint: your url is probably wrong). UPDATE: yeah, the comments below seem to indicate the 404 happens when the server is AWOL or overloaded or something.