Bug #11901 Updated: CURLOPT_HEADERFUNCTION result wrong header
| From: | sterling@php.net | Date: | Mon, 30 Jul 2001 21:06:24 +0000 |
| Subject: | Bug #11901 Updated: CURLOPT_HEADERFUNCTION result wrong header | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61579@lists.php.net to get a copy of this message | ||
ID: 11901
Updated by: sterling
Reported By: alberty@neptunlabs.de
Old Status: Open
Status: Closed
Bug Type: cURL related
Operating System: i686-pc-linux-gnu
PHP Version: 4.0 Latest CVS (2001-07-05)
New Comment:
fixed in cvs.
Previous Comments:
------------------------------------------------------------------------
[2001-07-05 06:16:45] alberty@neptunlabs.de
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 this bug report at http://bugs.php.net/?id=11901&edit=1