|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72863 url_setopt($ch,CURLOPT_HTTPHEADER,$headerArr)
Submitted: 2016-08-17 09:55 UTC Modified: 2016-08-28 04:22 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: 694299993 at qq dot com Assigned: cmb (profile)
Status: No Feedback Package: *General Issues
PHP Version: 7.0.9 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-08-17 09:55 UTC] 694299993 at qq dot com
use curl set header by curl_setopt($ch,CURLOPT_HTTPHEADER,$headerArr);i submit a
array data,but i still get the error warming 

Test script:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-17 10:44 UTC] ryosuke_i_628 at yahoo dot co dot jp
First, if you got warnings, you should paste whole sentences here.

>> i submit a array data, but i still get the error warming

It has very poor information for other people...

BTW, your second header is completely broken.

>> $headerArr[] = "text/html; charset=utf-8";

it should be:

$headerArr[] = "Content-Type: text/html; charset=utf-8";
 [2016-08-17 11:19 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2016-08-17 11:19 UTC]
I can't reproduce the reported behavior with PHP 7.0.9.

Please provide more detailed information about your environment,
and a minimal, self-contained reproduce script.
 [2016-08-28 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 05 13:01:33 2024 UTC