develooper Front page | perl.libwww | Postings from December 2003

500 EOF error

From:
Richard Dang
Date:
December 18, 2003 02:56
Subject:
500 EOF error
Message ID:
Pine.GSO.4.58.0312172037140.14687@richardd-u5.cisco.com

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








nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About