Gangabass has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I need to post a big list of networks into admin section of some website. And i use LWP::UserAgent for this.
$req = HTTP::Request->new( POST => "http://www.somesite.com/in +dex.php?admin/networks" ); $req->content_type('application/x-www-form-urlencoded'); $req->content("name=$name&address=$address&zip=$zip&savenetwor +k=Save+Network"); $res = $ua->request($req);
But then i post one network i get list of all inserted network in the response web page. And more data i insert then more data i recieve as response. So i have small request and big (1+ Mb) response.
So my question is: is there a way to POST data and ignore response?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [LWP::UserAgent] Send POST request and ignore response
by ikegami (Patriarch) on May 10, 2008 at 15:03 UTC | |
|
Re: [LWP::UserAgent] Send POST request and ignore response
by rhesa (Vicar) on May 10, 2008 at 14:16 UTC |