|more useful options|
Strawberry Perl and IIS not playingby bunchily (Novice)
|on May 28, 2010 at 11:52 UTC||Need Help??|
bunchily has asked for the wisdom of the Perl Monks concerning the following question:
So, anyway . . . I've got two near-identical Windows 2003 servers - live and test.
I have the same version of IIS (6.0) installed on both servers, but different versions of Perl.
On the live server, I have ActiveState 5.8.8. On the test server, I have Strawberry 5.12
I have the same script on both servers. The script begins like this:
I then define $session:
and I define the subroutine, output_header, to output the beginnings of a web-page:
I then call my subroutine:output_header($session, $wrb_url);
Note: you can disregard $wrb_url - it's not important. The rest of the script works fine and just outputs the rest of a web-page, including the final </body> and </html> tags. In fact, the problems SEEM to start before the <head> tag, possibly something to do with the HTTP stuff sent right at the beginning. On the test server, the browser returns CGI Error, with the line under that reading: 'The specified CGI application misbehaved by not returning a complete set of HTTP headers.'. The live server works fine. The only difference I've been able to spot in the HTTP is the inclusion of the following line on the live server:
[obviously the value of CGISESSID changes] This line is absent in the HTTP from the test server. I've been tearing my hair out trying to work out what on earth is wrong and why I'm getting that CGI error. Anyone?