LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   500 EOF instead of reponse status line in perl script (https://www.linuxquestions.org/questions/programming-9/500-eof-instead-of-reponse-status-line-in-perl-script-552805/)

Sherlock 05-10-2007 02:11 AM

500 EOF instead of reponse status line in perl script
 
Hi
I am getting the following error ..when executing the perl script....

500 EOF instead of reponse status line

I am using LPW:userAgent to send a request...


What could be the problem...

Regards

Matir 05-10-2007 11:58 PM

When executing WHICH perl script?

Sherlock 05-11-2007 12:07 AM

Quote:

Originally Posted by Matir
When executing WHICH perl script?


Its a script i wrote ...and i make use of userAgent in it...

I send the request but it throws...

but for certain requests...it works fine..

Regards

bigearsbilly 05-11-2007 02:28 AM

500 - Internal Server Error
The request was unsuccessful due to an unexpected condition encountered by the server.

your script is not well formed maybe

are we supposed to guess on the information supplied?

Sherlock 05-11-2007 06:39 AM

Quote:

Originally Posted by bigearsbilly
500 - Internal Server Error
The request was unsuccessful due to an unexpected condition encountered by the server.

your script is not well formed maybe

are we supposed to guess on the information supplied?


I believe it was probabaly because of connection time-out..

because the scrip that was called at the other end worked fine..

whereas ..only the response didnt come thru...

bigearsbilly 05-11-2007 07:29 AM

it may have worked but I bet it didn't work fine.
have you checked for perl warnings/errors?

post

Sherlock 05-14-2007 04:32 AM

Quote:

Originally Posted by bigearsbilly
it may have worked but I bet it didn't work fine.
have you checked for perl warnings/errors?

post

There were no warning or errors when i ran

perl filename

Only this message came

500.....etc

regards

chrism01 05-16-2007 06:52 AM

Please post a minimal version of the script which demonstrates the error.
Also ensure you use -w switch and strict eg

#!/usr/bin/perl -w
use strict;

<rest of perl script>

Please show exact error msgs


All times are GMT -5. The time now is 01:38 PM.