Sara wrote:
> Yep, I did that, tried every single option to remove this premature end of
> script headers.
>
> Do you think it has to do something with 'gedit' text editor? because I am
> scripting in this editor for the very first time.
> The scripts copied from Window XP machine have no problem
A cgi hello world script must have the headers in it.
For example,
#!/usr/bin/perl
print "Content-Type: Text/HTML\n\n";
print "Hello World";
-Original Message-
From: Sara [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 5:37 AM
To: beginperl
Subject: Pe
On Thursday, Sep 11, 2003, at 06:05 US/Pacific, Sara wrote:
[..]
and simply
print "Content-Type: text/html\n";
print "Hello World\n";
that form will NOT have the separator
and I expect you see something like:
[..]
: [jeeves: 45:] test_cgi GET simple.cgi
: Content-Type: text/plain
: hello World
:
Sara wrote:
> Apache Error Log: "premature end of script headers"
>
>
[snip]
> output, verified the syntax is ok and there is no problem with this 3 line
> script, but in the browser it again failed to run.
since it's only a 3 liner, can you post it?
david
--
$_=q,01500145015401540157004001
--
and simply
print "Content-Type: text/html\n";
print "Hello World\n";
--
Thanks,
Sara.
- Original Message -
From: "drieux" <[EMAIL PROTECTED]>
To: "cgi cgi-list" <[EMAIL PROTECTED]>
Sent: Friday, Septe
Sara,
Wiggins is right, one of the questions is what exactly
did the Apache Error Log say was it's chief complaint.
The 'premature end of script headers' suggest that your
output does not have a content-type or there is
separating them.
eg:
[jeeves: 45:] test_cgi GET simple.cgi
Content-Type: text
Apache Error Log: "premature end of script headers"
Thanks,
Sara.
- Original Message -
From: "Wiggins d'Anconia" <[EMAIL PROTECTED]>
To: "Sara" <[EMAIL PROTECTED]>; "beginperl" <[EMAIL PROTECTED]>
Sent: Fri
On Thu, 11 Sep 2003 15:37:05 +0500, "Sara" <[EMAIL PROTECTED]> wrote:
> I recently installed RH 9.0 on my machine with pre-configured Apache and Perl.
>
> I made a simple script "HELLO WORLD" to check the Perl and it gave me a continuous
> error
I recently installed RH 9.0 on my machine with pre-configured Apache and Perl.
I made a simple script "HELLO WORLD" to check the Perl and it gave me a continuous
error for "500 Internal Server Error" and "Premature End of Script Headers".
I double checked the perl path, permissions, httpd.conf e