php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65348 CURLOPT_VERBOSE does not work with CURLINFO_HEADER_OUT
Submitted: 2013-07-26 23:43 UTC Modified: 2013-11-08 00:33 UTC
Votes:11
Avg. Score:3.9 ± 1.1
Reproduced:9 of 9 (100.0%)
Same Version:4 (44.4%)
Same OS:4 (44.4%)
From: danielkurecka at gmail dot com Assigned:
Status: Wont fix Package: cURL related
PHP Version: Irrelevant OS: *
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: danielkurecka at gmail dot com
New email:
PHP Version: OS:

 

 [2013-07-26 23:43 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-11-08 00:33 UTC] pierrick@php.net
-Status: Open +Status: Wont fix
 [2013-11-08 00:33 UTC] pierrick@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 13:01:27 2024 UTC