Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: CGI on the console

by raflach (Pilgrim)
on May 10, 2005 at 02:28 UTC ( [id://455397]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI on the console
in thread CGI on the console

Neither CGI nor perlfaq9 offer any information on the topic of running cgi scripts from the console (i.e., from a command line typing /usr/bin/perl -w ./mycgiscript.cgi). Super Search was also of no help in locating appropriate topics (I did do at least a modicum of research before posting in the first place).

Replies are listed 'Best First'.
Re^3: CGI on the console
by Tanktalus (Canon) on May 10, 2005 at 02:36 UTC

    Actually, CGI does have information on this. Look for the section called "DEBUGGING". I just went there, searched for "command" (as in "command line" or "commandline"), and eventually found this section. I think it has exactly the details you're looking for.

      Ok,

      Sorry, perlfaq9 has nothing but CGI does contain the info on simulating POST data. Still nothing on simulating cookies. I'm guessing it has to be an env variable... Anyone want to take a shot?

        My guess is either HTTP_COOKIE or COOKIE. The format seems to be something like:

        COOKIE=name=value;name2=value1&value2
        This should be in your environment, but beware that if you're on unix, the ';' is a special character, so you need to properly escape this.

        This is all just a SWAG. YMMV.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-24 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found