Bug #11901: CURLOPT_HEADERFUNCTION result wrong header
| From: | alberty at neptunlabs dot de | Date: | Thu, 05 Jul 2001 10:16:46 +0000 |
| Subject: | Bug #11901: CURLOPT_HEADERFUNCTION result wrong header | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-58977@lists.php.net to get a copy of this message | ||
From: alberty@neptunlabs.de
Operating system: i686-pc-linux-gnu
PHP version: 4.0 Latest CVS (2001-07-05)
PHP Bug Type: cURL related
Bug description: CURLOPT_HEADERFUNCTION result wrong header
Hi,
the code:
----
function get_header($tmp1,$tmp2){
echo "R1:$tmp1<br>R2:$tmp2<br>";
return false;
}
curl_setopt ($ch, CURLOPT_HEADERFUNCTION, "get_header");
----
results only: "HTTP/1.1 200 OK" and not the complete header.
also the function get_header was not called for each header line.
Regards,
Steve
--
Edit Bug report at: http://bugs.php.net/?id=11901&edit=1