Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2018-03-23 15:38 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (294 votes). Check out past polls.