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
Onur Öztürk
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
Tim K
source
to share