README.md in chuckle-1.0.5 vs README.md in chuckle-1.0.6
- old
+ new
@@ -46,19 +46,23 @@
* **cache_dir** (~/.chuckle) - where chuckle should cache files. If HOME doesn't exist or isn't writable, it'll use `/tmp/chuckle` instead
* **cache_errors** (true) - false to not cache errors on disk (timeouts, http status >= 400, etc.)
* **cacert** (nil) - cacert option to pass to curl
* **capath** (nil) - capath option to pass to curl
* **cookies** (false) - true to turn on cookie support
+* **content_type** (application/x-www-form-urlencoded) - default content type for POST
* **expires_in** (:never) - time in seconds after which cache files should expire, or `:never` to never expire
* **insecure** (false) - true to allow insecure SSL connections
+* **headers** (nil) - optional hash of headers to include for all requests. Content-Type is overwritten by the :content_type option. example: {"Referer" => "http://foo.com"}
* **nretries** (2) - number of times to retry a failing request
* **rate_limit** (1) - number of seconds between requests
* **timeout** (30) - timeout per request. Note that if `nretries` is 2 and `timeout` is 30, a failing request could take 90 seconds to truly fail.
* **user_agent** - the user agent. Defaults to the IE9 user agent.
* **verbose** (false) - if true, prints each request before fetching. Only prints network requests.
## Changelog
+* 1.0.6 (May 15, 2015) - added support for setting arbitrary headers (@pattymac)
+* 1.0.5 (Jan 30, 2015) - added support for setting content type (@pattymac)
* 1.0.4 (Dec 6, 2014) - added support for --cacert, --capath and --insecure (@nkriege)
## Limitations