Use a more correct user agent example

This commit is contained in:
Zach Borboa
2016-08-07 15:27:32 -07:00
parent 7f8c8f11ab
commit 3c48f89d7c
+1 -1
View File
@@ -62,7 +62,7 @@ $curl->post('https://www.example.com/login/', array(
```php
$curl = new Curl();
$curl->setBasicAuthentication('username', 'password');
$curl->setUserAgent('');
$curl->setUserAgent('MyUserAgent/0.0.1 (+https://www.example.com/bot.html)');
$curl->setReferrer('');
$curl->setHeader('X-Requested-With', 'XMLHttpRequest');
$curl->setCookie('key', 'value');