Sha256: c7a73ffd79f3477eaaf80d83a57078b409808bbdebdd6b36ede673ca0323a7bf
Contents?: true
Size: 818 Bytes
Versions: 2
Compression:
Stored size: 818 Bytes
Contents
# zurl! brazen, ripoff/rewrite of [curly](https://github.com/aaronpk/curly). adds json content-type header, posts json bodies, parses/awesomeprints json responses, colors headers. ## changes #### -d * accepts formencoded, translates to json * accepts rubyish hash or array syntax, translates to json ##### examples `$ zurl -d foo=bar -d 'aaa=bbb&ccc=54321' -d 'baz: 123, bat: true' http://example.com` this would post the following body: ```javascript { "foo": "bar", "aaa": "bbb", "ccc": "54321", "baz": 123, "bat": true } ``` n.b. - if you want to post integers or booleans, use rubyish hash syntax as formencoded assumes strings. #### -W show formatted version of json post body #### -Z show starred lines from curl -v output #### -oauth [token] add `Authorization: Bearer [token]` header
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zurl-0.0.3 | README.md |
zurl-0.0.2 | README.md |