Thanks $Bill,

Here's the code for hello.plx:

use CGI qw/:standard/;
print header;
print start_html;
print "hello world!";
print end_html;

here's the output in the browser (FireFox or IE):

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

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; lang="en-US" xml:lang="en-US">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
hello world!
</body>
</html>


It's dispalying the source rather than interpreting it. Interestingly enough, if I change hello.plx to hello.pl (use perl.exe rather than the ISAPI DLL) it displays correctly! (When I view source I see the same html, of course.) When I run either script (pl or plx) from the command line I see the same output (same as above). So I can only assume that the ISAPI DLL is spitting out an http header!? It's never done this before and we've been running perl5.6 for several years now. I'm running IIS 5 on Win2000, btw. I rebooted the machine after I uninstalled 5.6 and installed 5.8. And I just rebooted the web server. Any suggestions about what to try next would be appreciated.

[EMAIL PROTECTED]







----- Original Message ----- From: "$Bill Luebkert" <[EMAIL PROTECTED]>
To: "dorian" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Monday, May 08, 2006 8:47 PM
Subject: Re: CGI header problem in 5.8


dorian wrote:

I just upgraded my Win2000 server from ActivePerl5.6 to 5.8 and now my
CGI scripts are failing.  I have many scripts where I "use CGI
qw/:standard/;" and then:

print header;
print start_html;

As per the CGI.pm man page.  But now it prints two http headers and
displays the html source to the browser.  If I delete the first print
header statement then it displays correctly.  This would not be such a
big deal but there are many scripts where I do this and it appears to
still be correct from looking at the CGI.pm docs.  More seriously I am
also using CGI::Ajax (which worked under 5.6) and it is also outputting
double headers and I see no way to control this.  I lasso don't know
what other scripts may be affected by this.

Any help on this would be most appreciated.  I am hesitant to upgrade my
production server to 5.8 and now the scripts on my development and
production servers are out of sync.

I'd suggest you come up with the smallest complete test case that reproduces
your problems along with the complete script and output from the script
(maybe also run it in a command window and cut-n-paste the output into
your post).
_______________________________________________
Perl-Win32-Web mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs





_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to