http://qs1969.pair.com?node_id=521644


in reply to Need help with Perl in IIS setup

Hello there, welcome to perl monks

The print "Content-type: text/html"; line is used on Unix servers to tell the browser what it should display, and it should always come before any text. However, it appears that IIS or ActivePerl is adding this line for you.

From what I understand, your code looks like this:

print "Content-type: text/html\n\n"; print "Show me the money";

In which case, the browser has already got a Content-Type header from IIS, and your script is sending it another one! Try removing it, and see if that fares any better.

One more thing - the 2nd and 3rd lines you removed, you should not have done - strict makes your code easier to debug, and CGI allows you to use forms and web-page things, so it is best to add them back in.

Hope this helped

Replies are listed 'Best First'.
Re^2: Need help with Perl in IIS setup
by Discipulus (Canon) on Feb 01, 2006 at 09:10 UTC
    hello
    is not for this reason i put
    use CGI qw /:standard -nph/;
    at the top of my CGI?

    Lorenzo