joshdick / miniProxy

🚨⚠️ UNMAINTAINED! ⚠️🚨 A simple PHP web proxy.
http://joshdick.github.io/miniProxy
GNU General Public License v3.0
860 stars 545 forks source link

Set custom referer #133

Closed gmkbenjamin closed 5 years ago

gmkbenjamin commented 5 years ago

Is it possible to set custom referer? curl_setopt function (CURLOPT_REFERER and CURLOPT_USERAGENT) doesn't seem to work for me.

BelleNottelling commented 5 years ago

User agent is set here https://github.com/joshdick/miniProxy/blob/master/miniProxy.php#L104

gmkbenjamin commented 5 years ago

Thanks Ben. Had to comment out CURLOPT_HTTPHEADER for useragent and referer to work.