Fix #21: Add gzip compression example

This commit is contained in:
zachborboa
2014-02-08 22:07:40 -08:00
parent 0a683fc98a
commit 50a75b67e6
+7
View File
@@ -78,6 +78,13 @@ $curl->delete('http://api.example.com/user/', array(
));
```
```php
// Enable gzip compression.
$curl = new Curl();
$curl->setOpt(CURLOPT_ENCODING , 'gzip');
$curl->get('https://www.example.com/image.png');
```
```php
$curl->close();
```