Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 4th, 2000, 01:36 PM
vbedceo vbedceo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 1999
Posts: 1 vbedceo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi, I am running into a very frustating problem. I was running a lot of complicated perl-cgi scripts and they were all working perfectly fine. I had to move to a new server which I set up the other day (Apache 1.3.9).

I moved all the scripts over and then tried them. They all give me 500 internal error. I checked the log file and it says "premature end of script header"!!

I checked:
1. perl path (correct)
2. Correct header print ("Content-type: text/html")
3. There is a line after the header print.
4. Perl is 5.00503

I even tried a very easy script and it is also giving me the same error.
#!/usr/bin/perl

print "Content-type: text/htmlnn";

print "Hello";

This runs fine from the command line with no error, but via the web, it's 500 internal error because of "premature end of script" URL

I do not think this is the web server problem.(?)
Please help. Thanks.

[This message has been edited by vbedceo (edited January 04, 2000).]

[This message has been edited by vbedceo (edited January 04, 2000).]

Reply With Quote
  #2  
Old January 11th, 2000, 10:10 AM
tmak tmak is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 1999
Location: Chicago
Posts: 6 tmak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

In your original scripts try utilising
the:
strict,
CGI::Carpt qw(fatalsToBrowser), and
diagnostics perl modules.

That's all I can say, the script looks
fine, you may want to comb your httpd.conf
one more time just to make sure...

sorry I couldn't be of more help.

Reply With Quote
  #3  
Old January 14th, 2000, 07:13 AM
AjayLulia AjayLulia is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: Mumbai, Maharashtra, INDIA
Posts: 4 AjayLulia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to AjayLulia
u have done everything very fine

but u never entered mime type properly

it is "Content-type: text/html nn"
don't forget to give "nn" in the end

I think this should work

Reply With Quote
  #4  
Old January 15th, 2000, 05:37 PM
Imo Imo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 1999
Posts: 33 Imo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
If you didn't notice they did remember the nn!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Premature end of script !!@#

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap