Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Need help with Perl in IIS setup

by abcde (Scribe)
on Jan 06, 2006 at 21:16 UTC ( #521644=note: print w/replies, xml ) Need Help??

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
    is not for this reason i put
    use CGI qw /:standard -nph/;
    at the top of my CGI?


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://521644]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2023-12-04 15:44 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (25 votes). Check out past polls.