I got the error EOF when used perl 5.6, and lwp at 5.64. richardd-u5% /usr/cisco/bin/perl5.6 -MLWP -e "print(LWP->VERSION)" 5.64
Even after downloaded lwp version 5.76. Lwp doesn't appear consider EOF as an error, but return nothing from post request. Any insights about this error? Regards, Richard > Hi, > > What does the error mean? > > $ua->credentials( $netloc, $realm, $username, $passwd ); > > $ua->timeout( "1200" ); > > my $req = POST $report_url, $form_ref; > > my $content = $ua->request($req); > > if ( $content->is_success ) { > my $body = $content->as_string; > > } else { > my $err_msg = $content->error_as_HTML; > > ... cut ... > > ERROR: > > main::(cc_change_metrics_report:570): > 570: print $err_msg, "\n"; > DB<6> n > <HTML> > <HEAD><TITLE>An Error Occurred</TITLE></HEAD> > <BODY> > <H1>An Error Occurred</H1> > 500 EOF instead of reponse status line > </BODY> > </HTML> > > Regards, > Richard