www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <william.sm...@benefon.fi>
Subject Re: os-windows/3261: Does not execute binary executable files ( .exe)
Date Fri, 23 Oct 1998 05:17:10 GMT





kparz@raleigh.ibm.com on 22/10/98 17:19:46

To:   apache-bugdb@apache.org, kparz@raleigh.ibm.com,
      wr_smith_jr@geocities.com
cc:    (bcc: William Smith WS)
Subject:  Re: os-windows/3261: Does not execute binary executable files
      (.exe)




[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]


Synopsis: Does not execute binary executable files (.exe)

State-Changed-From-To: feedback-closed
State-Changed-By: kparz@raleigh.ibm.com
State-Changed-When: Thu Oct 22 07:19:45 PDT 1998
State-Changed-Why:
AAAAhhhhh... Looks like the error log has the answer.
In fact it appears that apache is executing your CGI.  The
problem seems to be that the CGI is generating an
incorrect header.
You need to fix the CGI, be sure that the header is
something like:
Content-type: text/html
or whatever content type you want.
For more help with CGIs try
http://hoohoo.ncsa.uiuc.edu/cgi/


This is the output of the exe program:

Content-type: text/html
<html>
<head><title>Trial CGI program</title></head>
<body><h1>Trial CGI program</h1>
This is a trial CGI program
</body></html>

and this is my PERL script:

#!e:/perl/bin/MSWin32-x86-object/perl.exe
print "Content-type: text/html", "\n\n";

print "<html>", "\n";
print "<head><title>Trial CGI script</title></head>","\n";
print "<body bgcolor = #000000 text = #ffffff>","\n";
print "<h1>This is a trial CGI Script</h1>","\n";
print "</body></html>";

exit (0);

Is this an alright header?

Bill




Mime
View raw message