Use realistic referrer

This commit is contained in:
Zach Borboa
2016-09-23 22:11:50 -07:00
parent c0d325b0ae
commit b7f6a9da32
+1 -1
View File
@@ -63,7 +63,7 @@ $curl->post('https://www.example.com/login/', array(
$curl = new Curl();
$curl->setBasicAuthentication('username', 'password');
$curl->setUserAgent('MyUserAgent/0.0.1 (+https://www.example.com/bot.html)');
$curl->setReferrer('');
$curl->setReferrer('https://www.example.com/url?url=https%3A%2F%2Fwww.example.com%2F');
$curl->setHeader('X-Requested-With', 'XMLHttpRequest');
$curl->setCookie('key', 'value');
$curl->get('https://www.example.com/');