curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($param));

光有第一个,就会报错。两个要结合起来,就正常。

相关文章: