curl question
| From: | wm | Date: | Thu, 07 Feb 2002 18:49:22 +0000 |
| Subject: | curl question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-83892@lists.php.net to get a copy of this message | ||
hi. i've been experimenting with curl and it has been working great. i
was
wondering though if anybody knows why an extra "0" value is being tacked
on to the end of the post.
here is the example:
<?
$test="i hope this worked";
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.mydomain.com/testing.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "v1=$test&v2=20&v3=30");
curl_exec($ch);
curl_close($ch);
?>
and then the testing.php is:
<?
echo "$v1 $v2 $v3";
?>
the output, however is:
i hope this worked 20 30 0
how do i get rid of the extra 0? i'm not sure i need to for my purposes,
but i am
curious.
thanks.