Add download example to README

This commit is contained in:
Zach Borboa
2014-12-11 22:30:29 -08:00
parent f72733eb69
commit df49e9950c
+2 -2
View File
@@ -90,10 +90,10 @@ $curl->delete('http://api.example.com/user/', array(
```
```php
// Enable gzip compression.
// Enable gzip compression and download a file.
$curl = new Curl();
$curl->setOpt(CURLOPT_ENCODING , 'gzip');
$curl->get('https://www.example.com/image.png');
$curl->download('https://www.example.com/image.png', '/tmp/myimage.png');
```
```php