php.net |  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
Votes:1
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
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: 694299993 at qq dot com
New email:
PHP Version: OS:

 

 [2016-08-17 09:55 UTC] 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);


Patches

Pull Requests

History

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] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2016-08-17 11:19 UTC] 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-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: Thu Dec 12 18:01:26 2024 UTC