Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
Just another Perl shrine
 
PerlMonks  

need advice on choosing http POST module

by mr2 (Friar)
on Aug 11, 2002 at 20:34 UTC ( #189331=perlquestion: print w/ replies, xml ) Need Help??
mr2 has asked for the wisdom of the Perl Monks concerning the following question:


i need to make a simple script that takes my info and posts
it to some POST method using script on some remote server

my question is "what modules can be used for it?"
(& if it's not hard ... an example would be verry helpfull)

thnx

Comment on need advice on choosing http POST module
Re: need advice on choosing http POST module
by virtualsue (Vicar) on Aug 11, 2002 at 20:59 UTC
    Search this site for references to LWP with Super Search, then download it via your favorite method (or go to http://search.cpan.org if you don't have one). You should also look at perldoc for LWP. It's a very commonly used module and there is a lot of information available on how to do things with it.

    This is useful too: How to RTFM (thanks for reminding me, podmaster)

Re: need advice on choosing http POST module
by Nightblade (Beadle) on Aug 11, 2002 at 21:18 UTC
    HTTP::Request::Common

    #!/usr/bin/perl use LWP::UserAgent; use HTTP::Request::Common; $ua = new LWP::UserAgent; $res = $ua->request(POST $url, [%data]); print $res->content();

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://189331]
Approved by virtualsue
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-04-20 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls