Bug #72863 [Opn->Fbk]: url_setopt($ch,CURLOPT_HTTPHEADER,$headerArr)

From: Date: Wed, 17 Aug 2016 11:19:45 +0000
Subject: Bug #72863 [Opn->Fbk]: url_setopt($ch,CURLOPT_HTTPHEADER,$headerArr)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203349@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:         cmb@php.net
 Reported by:        694299993 at qq dot com
 Summary:            url_setopt($ch,CURLOPT_HTTPHEADER,$headerArr)
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            *General Issues
 PHP Version:        7.0.9
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[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


Thread (4 messages)

« previous php.bugs (#203349) next »