Hi,

I am new to libwww, so apologies if my questions seem pretty dumb to you...

Hmmm... I want to something pretty simple ... post data to an external script. From 
what I've read it would be accomplished with

$req2 = new HTTP::Request POST => $posturl;

$req2->content_type('application/x-www-form-urlencoded');

$req2->content('value1=$val1&value2=$val2');

my $res2 = $ua->request($req);

I got this code [well, the general idea] from the documentation of libwww .... now my 
question: Is there an easy method to encode the form values? DO they need to be 
encoded? Is there any lengthy, readable non-pod documentation out there? [I've looked, 
but didn't find anything helpful :-(].

TIA,

-M

Reply via email to