CGI Perl on IIS

Discussion in 'Perl Misc' started by dave h, Apr 14, 2004.

  1. dave h

    dave h Guest

    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
    dave h, Apr 14, 2004
    #1
    1. Advertising

  2. dave h

    Tintin Guest

    "dave h" <> wrote in message
    news:qi2fc.92227$-kc.rr.com...
    > 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.
    Tintin, Apr 14, 2004
    #2
    1. Advertising

  3. dave h

    Robin Guest

    7
    "dave h" <> wrote in message
    news:qi2fc.92227$-kc.rr.com...
    > 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
    Robin, Apr 27, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jürgen Exner

    Re: CGI Perl "use CGI" statement fail

    Jürgen Exner, Jul 31, 2003, in forum: Perl
    Replies:
    0
    Views:
    1,281
    Jürgen Exner
    Jul 31, 2003
  2. praba kar

    Python-cgi or Perl-cgi script doubt

    praba kar, Jul 30, 2005, in forum: Python
    Replies:
    1
    Views:
    548
    Michael Sparks
    Jul 30, 2005
  3. excord80
    Replies:
    17
    Views:
    646
    J Kenneth King
    Jan 29, 2009
  4. shumsta
    Replies:
    1
    Views:
    255
    Fabian Pilkowski
    Jul 22, 2005
  5. kath
    Replies:
    4
    Views:
    585
    J. Gleixner
    Apr 9, 2007
Loading...

Share This Page