sghani has asked for the wisdom of the Perl Monks concerning the following question:
In the above, $xmlfile is the actual location of the XML file being posted, while $filename is the name of the XML file itself. The file I'm trying to post is about 100MB (and sometimes even larger). Unfortunately, after a few minutes of running the script, I get the following error:# Post content to the supplied URL my $ua = new LWP::UserAgent; $ua->timeout( 3600 ); my $response = $ua->post( $url, Content_Type => 'multipart/form-data', Content => [ feedtype => $feedtype, datasource => $datasource, data => [ $xmlfile, $filename, Content_Type => $mimetype ] ] ); # Final error check throw Error::Simple( $response->message ) if( !$response->is_succe +ss ); print "Success"; } catch Error::Simple with { my $E = shift; print "ERROR: ", $E->text; } finally { print "\n"; };
At other times, I'm simply getting an EOF and then sudden death. I've tried everything known to me without any luck at all. Thinking that it may be a timeout issue, I set it to an hour. That didn't appear to solve the issue at all. Any help here would be enormously appreciated. Thanks, Sakerserver closed connection without any data back
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Frustrating LWP timeouts -- help!
by Khen1950fx (Canon) on Aug 26, 2006 at 07:50 UTC | |
by sghani (Initiate) on Aug 26, 2006 at 16:20 UTC | |
by Khen1950fx (Canon) on Aug 26, 2006 at 17:42 UTC | |
|
Re: Frustrating LWP timeouts -- help!
by bobf (Monsignor) on Aug 26, 2006 at 18:27 UTC | |
|
Re: Frustrating LWP timeouts -- help!
by Anonymous Monk on Aug 26, 2006 at 11:17 UTC | |
|
Re: Frustrating LWP timeouts -- help!
by mda2 (Hermit) on Aug 28, 2006 at 03:28 UTC |