Re: socket https.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux