php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11901 CURLOPT_HEADERFUNCTION result wrong header
Submitted: 2001-07-05 06:16 UTC Modified: 2001-07-30 17:06 UTC
From: alberty at neptunlabs dot de Assigned:
Status: Closed Package: cURL related
PHP Version: 4.0 Latest CVS (2001-07-05) OS: i686-pc-linux-gnu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alberty at neptunlabs dot de
New email:
PHP Version: OS:

 

 [2001-07-05 06:16 UTC] alberty at neptunlabs dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-30 17:06 UTC] sterling@php.net
fixed in cvs.
 [2001-07-30 17:06 UTC] sterling@php.net
fixed in cvs.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC