Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Porting DC-Dot to Windows

by Ieronim (Friar)
on Jul 17, 2006 at 20:00 UTC ( #561827=note: print w/replies, xml ) Need Help??


in reply to Porting DC-Dot to Windows

Try to leave only
print "Content-Type: text/html; charset=UTF-8\n\n";
before the actual output. The HTTP headers are sent by the webserver itself.

UPD:
If this does not help, try the following script:

print "Content-Type: text/plain; charset=UTF-8\n\n"; print "Hello, world!\n";
and describe what happens. Of course you may need to add a proper shebang line to the top of your script.


     s;;Just-me-not-h-Ni-m-P-Ni-lm-I-ar-O-Ni;;tr?IerONim-?HAcker ?d;print

Replies are listed 'Best First'.
Re^2: Porting DC-Dot to Windows
by willyyam (Priest) on Jul 17, 2006 at 20:31 UTC

    The first suggestion, to leave off the HTTP response header, didn't change my result.

    The second suggestion provides meaningful feedback though. I built the Hello World script as you suggested, and it would not execute with the name "test.pl" - I got the same error as before. However, when I changed the extension to cgi, I got a web page with the content "Hello, world!", which is very exciting. I changed the extention of dcdot.pl to dcdot.cgi, but I get the same error. I cleared the cache and tried again, in case, but still not joy. Still, this confirms that I have IIS configured to interpret Perl scripts, which is a good first step.

      1. Your script can die from an unexpected error. Try CGI::Carp qw(fatalsToBrowser).
      2. Your script can generate warnings before the headers are printed. Some webservers break the execution of the script in this case.
      3. Check the output of your script again! Content/type... must be the first line it prints.

           s;;Just-me-not-h-Ni-m-P-Ni-lm-I-ar-O-Ni;;tr?IerONim-?HAcker ?d;print

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2019-12-05 14:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (151 votes). Check out past polls.

    Notices?