Skip to content

Commit b7f6a9d

Browse files
committed
Use realistic referrer
1 parent c0d325b commit b7f6a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $curl->post('https://www.example.com/login/', array(
6363
$curl = new Curl();
6464
$curl->setBasicAuthentication('username', 'password');
6565
$curl->setUserAgent('MyUserAgent/0.0.1 (+https://www.example.com/bot.html)');
66-
$curl->setReferrer('');
66+
$curl->setReferrer('https://www.example.com/url?url=https%3A%2F%2Fwww.example.com%2F');
6767
$curl->setHeader('X-Requested-With', 'XMLHttpRequest');
6868
$curl->setCookie('key', 'value');
6969
$curl->get('https://www.example.com/');

0 commit comments

Comments
 (0)