Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Re: Re: POST on LWP::Simple

by moxliukas (Curate)
on Feb 08, 2004 at 18:32 UTC ( #327492=note: print w/replies, xml ) Need Help??

in reply to Re: Re: POST on LWP::Simple
in thread POST on LWP::Simple

Straight from lwpcook:

Lazy people use the HTTP::Request::Common module to set up a suitable POST request message (it handles all the escaping issues) and has a suitable default for the content_type:
use HTTP::Request::Common qw(POST); use LWP::UserAgent; $ua = LWP::UserAgent->new; my $req = POST '', [ search => 'www', errors => 0 ]; print $ua->request($req)->as_string;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://327492]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2016-10-21 14:34 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (289 votes). Check out past polls.