Bug #72863 [Fbk->NoF]: url_setopt($ch,CURLOPT_HTTPHEADER,$headerArr)
| From: | php-bugs at lists dot php dot net | Date: | Sun, 28 Aug 2016 04:22:34 +0000 |
| Subject: | Bug #72863 [Fbk->NoF]: url_setopt($ch,CURLOPT_HTTPHEADER,$headerArr) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-203622@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72863&edit=1
ID: 72863
Updated by: php-bugs@lists.php.net
Reported by: 694299993 at qq dot com
Summary: url_setopt($ch,CURLOPT_HTTPHEADER,$headerArr)
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: *General Issues
PHP Version: 7.0.9
Assigned To: cmb
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2016-08-17 11:19:44] cmb@php.net
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-17 10:44:57] 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 09:55:06] 694299993 at qq dot com
Description:
------------
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:
---------------
$headerArr=array();
$headerArr[]="Origin: http://d1.web2.qq.com";
$headerArr[]="text/html;charset=utf-8";
curl_setopt($ch,CURLOPT_HTTPHEADER,$headerArr);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72863&edit=1