HP3000-L Archives

May 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Philippe.Dimonte" <[log in to unmask]>
Reply To:
Philippe.Dimonte
Date:
Tue, 2 May 2000 11:26:37 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (57 lines)
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

ATOM RSS1 RSS2