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'));
Yes, it will work.
Keep in mind - if you are configuring your own HTTP headers, you must set them all at the same time.