Re: socket https.
| From: | Richard Lynch | Date: | Thu, 05 Oct 2006 21:23:23 +0000 |
| Subject: | Re: socket https. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242728@lists.php.net to get a copy of this message | ||
On Thu, October 5, 2006 3:30 pm, João Cândido de Souza Neto wrote:
> I´m using CURL, but it cannot send any data to server by POST mothod.
>
> Have you got any example abaut this to show me?
$curl = curl_init();
curl_setopt($curl, 'https://example.com/example.php');
curl_setopt($curl, CURLOPT_POST, 1);
$data = "x=" . urlencode($x);
$data .= "&y=" . urlencode($y);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
$result = curl_exec($curl);
More info:
http://php.net/curl
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?