atistler has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl require LWP::UserAgent; use HTTP::Request::Common; my $ua = LWP::UserAgent->new; $ua->timeout(10); $ua->env_proxy; $response = $ua->request(POST 'http://x.x.x.x/cgi-bin/rgcgi', [ type => DisplayRoute, table => IPtoPSTNRoute, phonenumbermatch => 'A1212' ]); if ($response->is_success) { print $response->content; # or whatever } else { die $response->status_line; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using LWP to POST multiple name/value pairs
by izut (Chaplain) on Mar 08, 2006 at 03:15 UTC | |
|
Re: using LWP to POST multiple name/value pairs
by nite_man (Deacon) on Mar 08, 2006 at 12:54 UTC | |
|
Re: using LWP to POST multiple name/value pairs
by zentara (Cardinal) on Mar 08, 2006 at 13:47 UTC |