You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Will <wi...@wawhosts.net> on 2004/03/19 01:43:42 UTC

[users@httpd] CGI Error

I have a question??

I installed CGI on a windows xp machine and it works good for this CGI
code: #!usr/bin/perl print "Content-type: text/html\r\n\r\n"; print
"Hello World.";

But when I try any other CGI script it has these errors: "Premature end
of script headers:"

Can anyone shed some light on this.  I configured Apache and restarted.
I hope I missed something.

Thanks in advance,
~WILL~



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] CGI Error

Posted by Will <wi...@wawhosts.net>.
What a dummy!!!  Sorry I am learning!!  Thanks a million :)

~WILL~

-----Original Message-----
From: Daniel Guido [mailto:infiniteedge@speakeasy.net] 
Sent: Thursday, March 18, 2004 10:29 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] CGI Error

windows?  usr/bin/perl?  guy, change that line to C:\Perl\bin\perl.exe 
or whereever you installed perl to.

dan guido

Will wrote:
> I have a question??
> 
> I installed CGI on a windows xp machine and it works good for this CGI
> code: #!usr/bin/perl print "Content-type: text/html\r\n\r\n"; print
> "Hello World.";
> 
> But when I try any other CGI script it has these errors: "Premature
end
> of script headers:"
> 
> Can anyone shed some light on this.  I configured Apache and
restarted.
> I hope I missed something.
> 
> Thanks in advance,
> ~WILL~
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] CGI Error

Posted by Daniel Guido <in...@speakeasy.net>.
windows?  usr/bin/perl?  guy, change that line to C:\Perl\bin\perl.exe 
or whereever you installed perl to.

dan guido

Will wrote:
> I have a question??
> 
> I installed CGI on a windows xp machine and it works good for this CGI
> code: #!usr/bin/perl print "Content-type: text/html\r\n\r\n"; print
> "Hello World.";
> 
> But when I try any other CGI script it has these errors: "Premature end
> of script headers:"
> 
> Can anyone shed some light on this.  I configured Apache and restarted.
> I hope I missed something.
> 
> Thanks in advance,
> ~WILL~
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org