Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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)

  • Comment on need advice on choosing http POST module

Replies are listed 'Best First'.
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 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

    #!/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?

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

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

    Results (321 votes). Check out past polls.