in reply to Frustrating LWP timeouts -- help!

As I see it, there are a couple of things that you can do here. The first thing would be to alter the timeout in the script:
#Post content to the supplied URL my $ua = LWP::UserAgent->new; $ua->timeout ( 0 );
The 0 time out is just a starting point. You can use any value that you want, but I would keep that value smaller than 3600. If that doesn't work, then go into LWP::UserAgent with your editor and comment out the timeout statements.

Replies are listed 'Best First'.
Re^2: Frustrating LWP timeouts -- help!
by sghani (Initiate) on Aug 26, 2006 at 16:20 UTC
    I tried your suggestion; unfortunately, I'm getting the same results --
    server closed connection without sending any data back
    What's somewhat odd (not entirely, I guess) is that the above snippet works perfectly when trying to push files of a smaller size, e.g. 50MB -- it's only happening with larger one. I will be trying the commenting out idea suggested by you. Is there anything else to try if that fails too? Thanks for all your help -- really appreciate it.
      Thank you for the reply. I'm fairly certain that "commenting out" will work, but if it doesn't, then try LWP::UserAgent::Determined. Use $browser->timing("1,3,15").

      LWP::UserAgent::Determined