Hello,
Any idea on how to display .gif or .jpf files using Apache via a CGI program
?
I wrote a (splash) program that send the following data. Everything works
fine except for the <img> tag trying to display .gif or jpg files.
Content-type: text/html
<html>
<head><title>Test CGI program</title></head>
<IMG SRC="n2.gif">
<IMG SRC="/cgi-bin/images/n8.gif">
<TABLE ... >
.......
<FORM METHOD='POST' ACTION='/cgi-bin/cgiget'>
........
<INPUT TYPE="submit" NAME="submit" VALUE="Send">
........
</html>
result :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
contents of the /APACHE/PUB/logs/access_log file :
daewoo.pdm.fr - - [02/May/2000:07:56:00 -0100] "GET /cgi-bin/n2.gif
HTTP/1.0" 500 605
daewoo.pdm.fr - - [02/May/2000:07:56:00 -0100] "GET /cgi-bin/images/n8.gif
HTTP/1.0" 500 605
Contents of the /APACHE/PUB/logs/error_log file :
HTTPD.PUB.APACHE: [Tue May 2 07:56:00 2000] [error] (8)Exec format error:
exec of /APACHE/PUB/cgi-bin/n2.gif failed
HTTPD.PUB.APACHE: [Tue May 2 07:56:00 2000] [error] [client 123.0.0.103]
Premature end of script headers: /APACHE/PUB/cgi-bin/n2.gif
HTTPD.PUB.APACHE: [Tue May 2 07:56:00 2000] [error] (8)Exec format error:
exec of /APACHE/PUB/cgi-bin/images/n8.gif failed
HTTPD.PUB.APACHE: [Tue May 2 07:56:00 2000] [error] [client 123.0.0.103]
Premature end of script headers: /APACHE/PUB/cgi-bin/images/n8.gif
Thanks
--
Philippe Di Monte
Mail to [log in to unmask]http://perso.wanadoo.fr/philippe.dimonte