LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
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: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration