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

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 (Abbot) 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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2019-05-26 07:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (153 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!