Gossamer Forum
Home : General : Perl Programming :

IIS AND PERL installation - Double header

Quote Reply
IIS AND PERL installation - Double header
i have perl on iis 5.0 printing Content-Type: text/html (header) on each page. the script works well on any other server - iis included. what's wrong on this iis server?
Quote Reply
Re: [robyone] IIS AND PERL installation - Double header In reply to
What code are you using (just so we can eliminate it)?
Quote Reply
Re: [Paul] IIS AND PERL installation - Double header In reply to
Hi

script is a normal and working script. believe me ;)

i was asking if you know if there is a configuration on IIS that could make it print a header itself, resulting that i have the header printed on the page (double header).

-----------------
use CGI;
$query = new CGI;
print $query->header;
print "<p>hello"
------------------

should print only:
------------------
hello
------------------

and not
------------------
Content-Type: text/html; charset=ISO-8859-1
hello
------------------

Last edited by:

robyone: Oct 9, 2002, 6:11 AM
Quote Reply
Re: [robyone] IIS AND PERL installation - Double header In reply to
I know what you were asking but I needed to make sure to save myself going on a wild goose chase :)

Do you have perl files associated with perl.exe?

Last edited by:

Paul: Oct 9, 2002, 6:13 AM
Quote Reply
Re: [Paul] IIS AND PERL installation - Double header In reply to
ok :)
do you mean if i call perl.exe in the first line, no.
if you mean the association to .cgi extensions on the server ... i don't have a clue. i am not the administrator of this sever.
what do you think?
thanks
Quote Reply
Re: [robyone] IIS AND PERL installation - Double header In reply to
Quote:
if you mean the association to .cgi extensions on the server

Yep.

You need to ask the person running the server.

Ask him to try a script and see if he has the same problem. If he does, he can fix it, if he doesn't he can still fix it Smile

Your sample script looks fine although you don't need a new object, you can just do:

print header;

....but that's not really an issue. It is a server related problem I think (eww IIS)

Last edited by:

Paul: Oct 9, 2002, 6:20 AM
Quote Reply
Re: [Paul] IIS AND PERL installation - Double header In reply to
i was considering he is idiot and would like to have a confirmation before ;))
thank you.

roby