发送get请求时,url是不是不能带查询字符串,只能是域名+path呢?我的示例如下,加上查询字符串后就不好使了???
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.dest.cn/member/my.php");
//curl_setopt($ch, CURLOPT_URL, "http://www.dest.cn/member/my.php?mid=14&my_calfee=1")
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$kk = curl_exec($ch);
curl_close($ch);
print_r($kk);
get就是url传参