> -----Original Message-----
> From: Josimar Nunes de Oliveira [mailto:jn_oliveira@;estadao.com.br]
> Sent: Monday, November 04, 2002 11:31 AM
> To: [EMAIL PROTECTED]
> Subject: Perl x RedHat 8.0 x Apache 2.0.40
> 
> 
> Hello everybody,
> 
> Please, does someone know how to fix this problem?
> The server is RedHat 8.0 with Apache 2.0.40.
> The same test was made on IIS 5.0 and no problem happened.
> 
> Thanks in advance,
> Josimar
> 
> 
> 
> </browserscreen>
> 
> Server error!
> The server encountered an internal error and was unable to 
> complete your request. 
> Error message: 
> Premature end of script headers: teste.pl 
> If you think this is a server error, please contact the webmaster 
> Error 500
> 192.168.1.8 
> Mon 04 Nov 2002 05:02:05 AM GMT-3 
> Apache/2.0.40 (Red Hat Linux) 

Error 500 is a catch-all for a malformed response. Always go look at the web
server's error log for more detailed error messages.

> 
> </browsescreen>
> 
> 
> <code>
> 
> #!/usr/bin/perl
> print <<EOHTML;
> HTTP/1.0 200 OK\n

Don't send the response code. The server takes care of that. Removing this
line should clear up the problem.

> Content-type: text/html\n\n
> <html>
> <head><title>Test</title></head><body>
> test
> </body></html>
> EOHTML
> 
> </code>
> 
> 
> 
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to