CGI Perl on IIS

D

dave h

Hi,

I have this page called index.shtml ----

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>index</title>
</head>
<body>
The date is<br>
<!--#echo var="DATE_LOCAL" --> <br>
A Perl Print result is<br>
<!--#exec cgi="/perltest/perltest.pl" --> <br>
end of test
</body>
</html>

---------------------------------------
and this perl script call perltest.pl --
#!c:\perl\bin
print "Content-type: text/html\n\n";
print "xxx\n";
#exit;
--------------------------------------------------------
when I run the index.shtml page the perl script returns a long string of
header info in front of the "xxx" that I was looking for. The W2K IIS host
I running on recommends using <meta name="hideHeader" content=""> before the
<!--#exec cgi="/perltest/perltest.pl" --> statement to eliminate these
unwanted headers. I've not been successful in getting rid of the headers
with this approach..

Any suggestions for getting rid of the unwanted headers - the actual line
returned looks like -> "HTTP/1.1 200 OK Date: Wed, 14 Apr 2004 00:09:47 GMT
Server: Microsoft-IIS/5.0 Content-type: text/html xxx "

thanks
 
T

Tintin

dave h said:
Hi,

I have this page called index.shtml ----
OK

---------------------------------------
and this perl script call perltest.pl --
#!c:\perl\bin
print "Content-type: text/html\n\n";
print "xxx\n";
#exit;

No Perl errors here.
--------------------------------------------------------
when I run the index.shtml page the perl script returns a long string of
header info in front of the "xxx" that I was looking for. The W2K IIS host
I running on recommends using <meta name="hideHeader" content=""> before the
<!--#exec cgi="/perltest/perltest.pl" --> statement to eliminate these
unwanted headers. I've not been successful in getting rid of the headers
with this approach..

Any suggestions for getting rid of the unwanted headers - the actual line
returned looks like -> "HTTP/1.1 200 OK Date: Wed, 14 Apr 2004 00:09:47 GMT
Server: Microsoft-IIS/5.0 Content-type: text/html xxx "

No Perl content here, but I'll give you a freebie. NPH.
 
R

Robin

7
dave h said:
Hi,

I have this page called index.shtml ----

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>index</title>
</head>
<body>
The date is<br>
<!--#echo var="DATE_LOCAL" --> <br>
A Perl Print result is<br>
<!--#exec cgi="/perltest/perltest.pl" --> <br>
end of test
</body>
</html>

---------------------------------------
and this perl script call perltest.pl --
#!c:\perl\bin
print "Content-type: text/html\n\n";
print "xxx\n";
#exit;
--------------------------------------------------------
when I run the index.shtml page the perl script returns a long string of
header info in front of the "xxx" that I was looking for. The W2K IIS host
I running on recommends using <meta name="hideHeader" content=""> before the
<!--#exec cgi="/perltest/perltest.pl" --> statement to eliminate these
unwanted headers. I've not been successful in getting rid of the headers
with this approach..

Any suggestions for getting rid of the unwanted headers - the actual line
returned looks like -> "HTTP/1.1 200 OK Date: Wed, 14 Apr 2004 00:09:47 GMT
Server: Microsoft-IIS/5.0 Content-type: text/html xxx "

thanks

well, you could always invest in a new web server, one of the good ones is
Xitami ( however you spell it )
-Robin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top