From b7f6a9da32151abe2c2aa7f09fdf806828059c1e Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Fri, 23 Sep 2016 22:11:50 -0700 Subject: [PATCH] Use realistic referrer --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c621c74..53839d9 100644 --- a/README.md +++ b/README.md @@ -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/');