CURL functions
| From: | Stefan Isarie | Date: | Tue, 04 Dec 2001 22:40:19 +0000 |
| Subject: | CURL functions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-76617@lists.php.net to get a copy of this message | ||
Hey,
I'm trying to use CURL for sending some headers to paypal. Can anyone tell
me why this code below doesn't work as expected???
$ch = curl_init();
curl_setopt($ch,
CURLOPT_URL,"https://www.paypal.com/cgi-bin/webscr");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,
"cmd=_cart&update=Update&$vard=1");
curl_exec ($ch);
curl_close ($ch);
PS: $vard is defined.
Thanks in advance
Stefan - Romania