LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-10-2007, 02:11 AM   #1
Sherlock
Member
 
Registered: Mar 2004
Location: India
Distribution: RedHat Linux 8
Posts: 60

Rep: Reputation: 15
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
 
Old 05-10-2007, 11:58 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
When executing WHICH perl script?
 
Old 05-11-2007, 12:07 AM   #3
Sherlock
Member
 
Registered: Mar 2004
Location: India
Distribution: RedHat Linux 8
Posts: 60

Original Poster
Rep: Reputation: 15
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
 
Old 05-11-2007, 02:28 AM   #4
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,284

Rep: Reputation: 172Reputation: 172
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?
 
Old 05-11-2007, 06:39 AM   #5
Sherlock
Member
 
Registered: Mar 2004
Location: India
Distribution: RedHat Linux 8
Posts: 60

Original Poster
Rep: Reputation: 15
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...
 
Old 05-11-2007, 07:29 AM   #6
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,284

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

post
 
Old 05-14-2007, 04:32 AM   #7
Sherlock
Member
 
Registered: Mar 2004
Location: India
Distribution: RedHat Linux 8
Posts: 60

Original Poster
Rep: Reputation: 15
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
 
Old 05-16-2007, 06:52 AM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to umark EOF status on scsci tape mayankh Linux - Hardware 1 10-20-2006 02:14 PM
Line breaks in html with perl script BroX Programming 18 01-10-2005 09:07 AM
PERL script OK at command line, not in browser alvo Programming 4 12-19-2004 08:28 AM
Perl shell-out to script dunna work. Works on command line. Why? jlangelier Linux - Software 1 08-28-2004 02:00 AM
http status 500 error pattar Linux - Software 1 02-18-2003 03:01 PM


All times are GMT -5. The time now is 12:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration