Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Need help with Perl in IIS setup

by abcde (Scribe)
on Jan 06, 2006 at 21:16 UTC ( [id://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
    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://521644]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-29 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found