WHat happens in the event that one of the variables below e.g $val1 is a
text string with quotes in it, will the below code still 'post' it
correctly??
TM
-----Original Message-----
From: Marko Schilde [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 15 August 2000 4:53pm
To: [EMAIL PROTECTED]
Subject: HTTP::Request ... questions on POST
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