代码如下
<code>$curl = curl_init (); // 启动一个CURL会话 curl_setopt ( $curl, CURLOPT_URL, $url ); curl_setopt ( $curl, CURLOPT_HEADERFUNCTION, function($ch, $str){} ); </code>
抛出错误:
Failed writing header
请问这是怎么回事?
代码如下
<code>$curl = curl_init (); // 启动一个CURL会话 curl_setopt ( $curl, CURLOPT_URL, $url ); curl_setopt ( $curl, CURLOPT_HEADERFUNCTION, function($ch, $str){} ); </code>
抛出错误:
Failed writing header
请问这是怎么回事?
我明白了,我设置CURLOPT_HEADER, FALSE,ture就可以了