Add additional example where requests with redirection enabled may be unsafe

This commit is contained in:
Zach Borboa
2016-10-18 00:51:37 -07:00
parent 2de669e996
commit e2efcfbb05
+6
View File
@@ -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.