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

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 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();