mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-10 02:16:23 +00:00
Add additional example where requests with redirection enabled may be unsafe
This commit is contained in:
@@ -66,6 +66,12 @@ $curl->setOpt(CURLOPT_FOLLOWLOCATION, true); // DANGER!
|
||||
$curl->download('https://www.example.com/image.png', 'my_image.png');
|
||||
```
|
||||
|
||||
```php
|
||||
$curl = new Curl();
|
||||
$curl->setOpt(CURLOPT_FOLLOWLOCATION, true); // DANGER!
|
||||
$curl->get('https://www.example.com/image.png');
|
||||
```
|
||||
|
||||
### Keep SSL protections enabled.
|
||||
|
||||
* Do not disable SSL protections.
|
||||
|
||||
Reference in New Issue
Block a user