时间:2021-07-01 10:21:17 帮助过:20人阅读
$curl = curl_init (); // 启动一个CURL会话
curl_setopt ( $curl, CURLOPT_URL, $url );
curl_setopt ( $curl, CURLOPT_HEADERFUNCTION, function($ch, $str){} );
抛出错误:
Failed writing header
请问这是怎么回事?
代码如下
$curl = curl_init (); // 启动一个CURL会话
curl_setopt ( $curl, CURLOPT_URL, $url );
curl_setopt ( $curl, CURLOPT_HEADERFUNCTION, function($ch, $str){} );
抛出错误:
Failed writing header
请问这是怎么回事?
我明白了,我设置CURLOPT_HEADER, FALSE,ture就可以了