Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

(ichimunki) Re: Mock CGI output to browser from Perl on Windows 98

by ichimunki (Priest)
on Dec 19, 2001 at 22:48 UTC ( #133210=note: print w/ replies, xml ) Need Help??


in reply to Mock CGI output to browser from Perl on Windows 98

Yes, you can set up your local machine as a web server, but you'll need to install some server software: looks like apache has a Win32 offering.

You can also run your CGI from the command line and have the script output to an HTML file rather than to STDOUT, but this isn't quite the same (although it can be a good technique for building a large static site).


Comment on (ichimunki) Re: Mock CGI output to browser from Perl on Windows 98
Re: (ichimunki) Re: Mock CGI output to browser from Perl on Windows 98
by tradez (Pilgrim) on Dec 19, 2001 at 23:32 UTC
    Actually the last thing is quite a good one, may be archaic but I do it quite often while testing code for work. just run your code on the command line like this :
    bash$>./perlmonksrule.pl "paramname=paramvalue&paramname2=paramvalue2"
    You are basically passing the code's STDIN exactly what apache sees and then inturn passes to your STDIN to be parsed my your CGI.pm.
Re: (ichimunki) Re: Mock CGI output to browser from Perl on Windows 98
by meraxes (Friar) on Dec 20, 2001 at 00:23 UTC
    I'd also recommend xitami as a simple web server for testing cgi. It's less than a meg to download. It comes almost completely setup for quick and simple operation with cgi-bin directory all set up and ready to go.

    You can get it off download.com

    Just do a search for Xitami. Very handy.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2014-09-15 05:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls