PHP Curl Original Headers

I want to set a header title when connecting to some url that does not belong to me

it is possible to install server [HTTP_ORIGIN] via CURL

curl_setopt($ch,CURLOPT_HTTPHEADER,array('Origin: somevalue'));

      

+3


source to share


1 answer


Yes, it will work.



Keep in mind - if you are configuring your own HTTP headers, you must set them all at the same time.

+2


source







All Articles