Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: I can't get Perl to run on MS-IIS! Help!

by Lexicon (Chaplain)
on Jan 23, 2001 at 07:14 UTC ( [id://53658]=note: print w/replies, xml ) Need Help??


in reply to I can't get Perl to run on MS-IIS! Help!

Here's some random ideas, although this is hard to discuss without seeing the server itself. This is about the minimal code you need for the CGI to work.
print "Content-Type: text/html\n"; #Tell browser it's html print "\n"; #IMPORTANT-End of header. print "Hello World"; #Output

It works on my server (IIS4/Activestate), so if it doesn't work on yours, then you know the problem is in configuration. Otherwise you should post your code.

Oh, and this is named HelloWorld.cgi on my server. See if the .cgi extention works (it may need to be in the cgi-bin directory, I forget)

-Lexicon

Replies are listed 'Best First'.
Re tilly (2): I can't get Perl to run on MS-IIS! Help!
by tilly (Archbishop) on Jan 23, 2001 at 07:19 UTC
    Did you meant text/plain?
    print "Content-type: text/plain\n\nHello World";
    is about as minimal as it gets.

Log In?
Username:
Password:

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

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

    No recent polls found