$data = array("name" => "Hagrid"
$data_string = json_encode($data); $ch = curl_init(
curl_setopt($ch
curl_setopt($ch
curl_setopt($ch
curl_setopt($ch
);
$result = curl_exec($ch);
From:http://tw.wingwit.com/Article/program/PHP/201311/20865.html