andyodey Posted April 19, 2010 Share Posted April 19, 2010 Hey all, Not sure if it's possible to either hide the headers or randomly generate alternatives when using file_get_contents() or curl ? Thanks A Link to comment https://forums.phpfreaks.com/topic/199018-anonymous-headers/ Share on other sites More sharing options...
premiso Posted April 19, 2010 Share Posted April 19, 2010 curl_setopt is what you will need: curl_setopt($cURL, CURLOPT_HTTPHEADER, array ( "Content-Type: text/xml; charset=utf-8", "Expect: 100-continue" )); An example snippet. Link to comment https://forums.phpfreaks.com/topic/199018-anonymous-headers/#findComment-1044669 Share on other sites More sharing options...
andyodey Posted April 19, 2010 Author Share Posted April 19, 2010 Is it then possible to change the referer and remote_addr through it too? or fake it in a way? Link to comment https://forums.phpfreaks.com/topic/199018-anonymous-headers/#findComment-1044671 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.