Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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;

Comment on Re: Re: Re: POST on LWP::Simple
Download Code

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 scrutinizing the Monastery: (4)
As of 2015-12-01 06:52 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (795 votes), past polls