Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: POST on LWP::Simple

by Gorby (Monk)
on Feb 08, 2004 at 18:24 UTC ( [id://327491]=note: print w/replies, xml ) Need Help??


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

How then do I use POST using LWP::UserAgent? Can you give an example? Thanks. Gorby.

Replies are listed 'Best First'.
Re: Re: Re: POST on LWP::Simple
by moxliukas (Curate) on Feb 08, 2004 at 18:32 UTC

    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 'http://www.perl.com/cgi-bin/BugGlimpse', [ search => 'www', errors => 0 ]; print $ua->request($req)->as_string;
Re: POST on LWP::Simple
by Abigail-II (Bishop) on Feb 09, 2004 at 09:38 UTC
    How then do I use POST using LWP::UserAgent?
    Did you bother to read the documentation of LWP::UserAgent? If so, could you indicate which part about using POST was unclear to you?

    Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-18 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found