Bug #65348 [Opn->Wfx]: CURLOPT_VERBOSE does not work with CURLINFO_HEADER_OUT
| From: | pierrick@php.net | Date: | Fri, 08 Nov 2013 00:33:33 +0000 |
| Subject: | Bug #65348 [Opn->Wfx]: CURLOPT_VERBOSE does not work with CURLINFO_HEADER_OUT | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-182643@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65348&edit=1
ID: 65348
Updated by: pierrick@php.net
Reported by: danielkurecka at gmail dot com
Summary: CURLOPT_VERBOSE does not work with
CURLINFO_HEADER_OUT
-Status: Open
+Status: Wont fix
Type: Bug
Package: cURL related
Operating System: *
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Internally CURLINFO_HEADER_OUT uses CURLOPT_VERBOSE along with CURLOPT_DEBUGFUNCTION.
I don't see any simple way of making this work without adding new structure to store the status
of the userland CURLOPT_VERBOSE. Since CURLOPT_VERBOSE is mostly for a debugging puropose I rather
not fix it.
If someone have a valid case where VERBOSE must work with CURLINFO_HEADER_OUT, reopen this and I
will try to give a deeper look.
Previous Comments:
------------------------------------------------------------------------
[2013-07-26 23:43:58] danielkurecka at gmail dot com
Description:
------------
When CURLINFO_HEADER_OUT is set to TRUE than CURLOPT_VERBOSE does not work.
Test script:
---------------
$ch = curl_init('example.com');
curl_setopt($ch, CURLINFO_HEADER_OUT, TRUE);
curl_setopt($ch, CURLOPT_VERBOSE, TRUE);
curl_exec($ch);
Expected result:
----------------
Verbose information should be printed.
Actual result:
--------------
Nothing is printed.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65348&edit=1