gregor-e has asked for the wisdom of the Perl Monks concerning the following question:
An easy one (I hope) - how does one process the parameters from an HTTP::Request they have received using HTTP::Daemon? I'm hoping there's a way to create a CGI object, initialized with the HTTP::Request, like:
Is there a way to feed an HTTP::Request object into CGI like that? Otherwise, how do people normally process HTTP::Requests?use HTTP::Daemon; use CGI qw/:standard/; my $httpd = new HTTP::Daemon(LocalPort => 8765); while (my $connection = $httpd->accept()) { # spawn child to deal with this request fork() && next; while (my $request = $connection->get_request()) { ### I wish this would work. ### my $query = new CGI($request); ... process CGI parms in the usual way
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: using CGI on HTTP::Request from HTTP::Daemon
by chromatic (Archbishop) on Oct 24, 2003 at 23:49 UTC | |
by PodMaster (Abbot) on May 25, 2004 at 20:14 UTC | |
by tachyon (Chancellor) on May 26, 2004 at 00:55 UTC | |
by PodMaster (Abbot) on May 26, 2004 at 01:05 UTC | |
by tachyon (Chancellor) on May 26, 2004 at 03:38 UTC | |
| |
Re: using CGI on HTTP::Request from HTTP::Daemon
by lachoy (Parson) on Oct 25, 2003 at 13:32 UTC | |
Re: using CGI on HTTP::Request from HTTP::Daemon
by tachyon (Chancellor) on May 26, 2004 at 07:52 UTC |
Back to
Seekers of Perl Wisdom