in reply to Getting Error 503 with LWP::UserAgent

A 503 response means that service is temporarily unavailable and you should try again later. For what it's worth, your code works for me.

Have you been hitting that server with a lot of requests? One reason you could be getting this error but other methods of getting the page succeed is that the server is intentionally throttling your ip address because you have been making too many calls to it.

  • Comment on Re: Getting Error 503 with LWP::UserAgent