IIS4 - Perl - SSI works, but server text returned
Hello Everyone,
My first post on the forum.
I'm using a banner roation script written in Perl, on an IIS4 server. The script is from:
http://www.HostFacts.com/scripts/
It uses an SSI include of:
<!--#exec cgi="/cgi-bin/banner.cgi" -->
Everything works fine, however, when the page with the SSI is displayed, just above the banner image, it displays:
"HTTP/1.1 200 OK Date: Mon, 15 May 2000 16:38:39 GMT Server: Microsoft-IIS/4.0 Content-type: text/html"
I'm thinking it is something from a server stand point, as when I call the banner.cgi directly from the cgi-bin directory, it doesn't provide the additional text. Only when it's included in the HTM page.
Any help or advice appreciated. Thanks!
Wade
Orpheus posted this at 20:39 — 15th May 2000.
They have: 568 posts
Joined: Nov 1999
I think your best bet is to email your server admin.
I'm linux-only
Wade posted this at 04:45 — 16th May 2000.
They have: 4 posts
Joined: May 2000
Thanks. Unfortunately, I would only be emailing myself, and I'm not sure I could give myself the answer I'm looking for, LOL!
jwhitener posted this at 22:27 — 25th May 2000.
They have: 27 posts
Joined: Mar 1999
You need to edit the first line of the cgi to exclude the print "content type:..." segment. For some reason my IIS server doesn't like this line and prints out the server info also (I run IIS 4 on NT4, perl build 5.005, activstate release). Almost every perl script that i've used has a print "content..." line and this won't work with IIS.
Jason Whitener
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.