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?
Oct 9, 2002, 5:59 AM
User (119 posts)
Oct 9, 2002, 5:59 AM
Post #3 of 7
Views: 4716
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
------------------
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
------------------
Oct 9, 2002, 6:19 AM
Veteran (19537 posts)
Oct 9, 2002, 6:19 AM
Post #6 of 7
Views: 4685
Quote:
if you mean the association to .cgi extensions on the serverYep.
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
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)