in reply to CGI on the console

The pod for CGI as well as perlfaq9 should help. If you're trying to POST from a CGI, Super Search should help you locate posts on this very topic (I know I answered one awhile back, anyway).

Replies are listed 'Best First'.
Re^2: CGI on the console
by raflach (Pilgrim) on May 10, 2005 at 02:28 UTC
    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).

      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?