php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68176 Support for CURLOPT_HEADEROPT and CURLOPT_PROXYHEADER options
Submitted: 2014-10-07 11:01 UTC Modified: 2017-09-10 21:38 UTC
Votes:3
Avg. Score:3.0 ± 1.4
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: jan dot klos dot contractor at avg dot com Assigned: cmb (profile)
Status: Closed Package: cURL related
PHP Version: 5.6-dev OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jan dot klos dot contractor at avg dot com
New email:
PHP Version: OS:

 

 [2014-10-07 11:01 UTC] jan dot klos dot contractor at avg dot com
Description:
------------
Since cURL 7.37.0, cURL supports setting separate HTTP headers for CONNECT and other proxy requests and to the target server itself. This is especially useful when the HTTP headers break the connection. It would be nice to have this ability in PHP as well. See http://curl.haxx.se/libcurl/c/CURLOPT_HEADEROPT.html

I have searched in cURL source for the constant values and tried to set the values using "curl_setopt($ch, 229, 1)", to no avail - the unknown options are probably filtered somewhere in cURL PHP wrapper source.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-10-17 11:31 UTC] tyrael@php.net
-PHP Version: 5.6.1 +PHP Version: 5.6-dev
 [2016-06-16 16:21 UTC] cmb@php.net
-Type: Feature/Change Request +Type: Documentation Problem -Assigned To: +Assigned To: cmb
 [2016-06-16 16:21 UTC] cmb@php.net
These constants are available as of PHP 7.0.7, see
<https://github.com/php/php-src/blob/php-7.0.7/ext/curl/interface.c>.

I'm changing to doc bug, because that is not yet documented.

@tyrael Should the constants be included in PHP 5.6, too?
 [2016-06-16 16:38 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=339371
Log: Fix #68176: Support for CURLOPT_HEADEROPT and CURLOPT_PROXYHEADER options
 [2016-06-16 16:41 UTC] cmb@php.net
-Assigned To: cmb +Assigned To: tyrael
 [2016-06-16 16:41 UTC] cmb@php.net
The documentation is fixed (will take a while to get rolled out,
though). Switching back to feature request and assigning to tyrael
wrt. to PHP 5.6 backport decision.
 [2017-09-10 21:38 UTC] cmb@php.net
-Status: Assigned +Status: Closed -Assigned To: tyrael +Assigned To: cmb
 [2017-09-10 21:38 UTC] cmb@php.net
> Should the constants be included in PHP 5.6, too?

This ship has long sailed, so I'm closing this ticket.
 [2020-02-07 06:07 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=a02cc0d866aefc5ad2394399812751ba43679c13
Log: Fix #68176: Support for CURLOPT_HEADEROPT and CURLOPT_PROXYHEADER options
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 20:01:30 2024 UTC