in reply to Using callback on the response for the POST method
Hello,
You can do it with an HTTP::Request object.
my $req = HTTP::Request->new(POST => $URL); $req->content_type('application/x-www-form-urlencoded'); $req->content('param=value'); my $res = $ua->request($request, sub {...});
You will find more information in the LWP manual (actually, that above code comes directly from that manual).
I hope this helps.
Update: Fixed a syntax error with the parentheses.
--
Alper Ersoy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using callback on the response for the POST method
by m3LLow (Acolyte) on Jul 18, 2002 at 21:41 UTC |