Re: CURL functions
| From: | Fred | Date: | Wed, 05 Dec 2001 00:29:22 +0000 |
| Subject: | Re: CURL functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76623@lists.php.net to get a copy of this message | ||
It would be difficult at best to answer your question without first knowing
two things:
1. What did you expect it to do?
2. What did it actually do?
Fred
Stefan Isarie <stefan@vv-inc.com> wrote in message
news:20011204224136.65260.qmail@pb1.pair.com...
> 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