[kw-pm] Redirection in Perl CGI

Cees Hek ceeshek at gmail.com
Mon Jul 27 16:32:28 PDT 2009


Making a POST request to another URL from perl is easy with the
HTTP::Request::Common module:

use HTTP::Request::Common;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;
$ua->request(POST 'http://somewhere/foo', [foo => bar, bar => foo]);

Cheers,

Cees


On Tue, Jul 28, 2009 at 4:57 AM, Robert Pike <roberthpike at yahoo.com> wrote:

> CGI application: what's the best way to take content passed in to a perl
> script from a form and have that content passed on/redirected to another
> script? Anyone know how to accomplish this without having to tack onto the
> url? Thanks.
>
>
>      __________________________________________________________________
> Looking for the perfect gift? Give the gift of Flickr!
>
> http://www.flickr.com/gift/
>
> _______________________________________________
> kw-pm mailing list
> kw-pm at pm.org
> http://mail.pm.org/mailman/listinfo/kw-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/kw-pm/attachments/20090728/f29091c4/attachment.html>


More information about the kw-pm mailing list