#!/usr/bin/perl -T use strict; use diagnostics; use LWP::UserAgent; my $req = HTTP::Request->new( POST => 'http://example.com/webservice', # method and URI ); $req->content_type('application/xml'); $req->content('<hello>world!</hello>'); my $ua = LWP::UserAgent->new; $ua->timeout(5); my $res = $ua->request($req); print $res->content if $res->is_success;
In reply to Re^3: Using CURL
by Anonymous Monk
in thread Using CURL
by peewee_zz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |