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 Quote 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. Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/199018-anonymous-headers/#findComment-1044671 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.