in reply to LWP::UserAgent POST example

Hello ssara and welcome to the monastery and to the wonderful world of Perl.

You need to pass fields as an anonymous array after the url, like:

use HTTP::Request::Common qw(POST); use LWP::UserAgent; $ua = LWP::UserAgent->new; my $req = POST 'https://rt.cpan.org/Public/Dist/Display.html', [ Status => 'Active', Name => 'libwww-perl' ]; print $ua->request($req)->as_string;

See POST at lwpcook for the example.

I think you can also consider WWW::Mechanize to issue your POST

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.