php
// create curl resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL...总结一下,php中curl用法就是:创建curl会话 -> 配置参数 -> 执行 -> 关闭会话。... = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER..., 0);
curl_setopt($curl, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($curl, CURLOPT_POST, 1);
...curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post));
curl_exec($curl);
curl_close