mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-12 19:36:31 +00:00
Use a more correct user agent example
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user