[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: perl / cgi



Hey Mario-
 
Although that particular error message and your question are about as vague as one can get in regards to Perl and web scripting, your problem most likely is that you didn't print out the header information before returning any other value. Throw the following in your code somewhere before returning anything else.
 
print "Content-type: text/html\n\n";
 
The two newline chars are NOT optional. Did you remember to mark them executable?
 
Hope that helps!
 
Henrik
---
Henrik Hudson
Microsoft: "Where would you like to go to today"
Linux: "Where would you like to go tomorrow"
FreeBSD: "Hey, when are you guys going to catch up"
-----Original Message-----
From: Mario Zuppini [mailto:tribune@cybersol.com.au]
Sent: Tuesday, January 30, 2001 19:52
To: debian-user@lists.debian.org; debian-isp@lists.debian.org
Subject: perl / cgi

Hey people's
 
runnign debian potato and with apache web server, does anyone know why cant execute some cgi's/perl scripts through the web browser
while others we can.
 
What it seems to be is simple scripts wont work but complex scripts are working, below are the error messages :
 
Internal Server Error : following error msgs in the error log

[Wed Jan 31 11:43:49 2001] [error] [client 203.34.142.9] malformed header from script. Bad Header Groovy": /services/www/cybersol/trash.cybersol.com.au/cgi-bin/hello.pl
 
[Wed Jan 31 11:45:31 2001] [error] [client 203.34.142.9] Premature end of script headers: /services/www/cybersol/trash.cybersol.com.au/cgi-bin/hello.pl

Reply to: