in reply to LWP 500 read timeout

My guess, You forgot to load HTTP::Request module.

Which is not required for your script and I have absolutely no idea why you're using it while the only thing you need is already included in LWP::UserAgent module

a simple $ua->get would the job just fine, you don't need to build a request yourself.

Replies are listed 'Best First'.
Re^2: LWP 500 read timeout
by Anonymous Monk on Jun 16, 2010 at 05:07 UTC
    Hi ahmad,

    It doesn't work even if I use a simple $ua->get($url). Basically, using perl and LWP::UserAgent or LWP::Simple, it doesn't work.

    It works with curl ,but I cannot install that on the box that I'm working on. I need to make it work using standard Perl modules. Any other way, I can download files from the net, using Perl?


    Thanks, Bharat.
      It works using wget too. But I still need to rectify what is going wrong with the Perl script.
      Thanks, Bharat.
Re^2: LWP 500 read timeout
by Anonymous Monk on Jun 16, 2010 at 04:07 UTC
    My guess, You forgot to load HTTP::Request module.

    If that were the case, his program would die. This is not the case.

    $ perl -MLWp -le"print for grep /HTTP/, keys %INC" HTTP/Status.pm HTTP/Date.pm HTTP/Response.pm HTTP/Message.pm HTTP/Request.pm HTTP/Headers.pm