Simple CLI tool to query endpoints like you would do via wget or curl, except this has a sane api and it's 50 LoC :D - coded in year 2014
ruby .../path_to/curlr.rb http://makevoid.com
(Note: you need to alias the command as there is no curlr gem)
curlr get http://emberjs.com
then you can pass parameters with get:
curlr get http://jquery.com/?whatever=tue
and of course, make a post request
curlr post http://jquery.com/?param1=123¶m2=abc
Alias set up
edit your bashrc / zshrc and add
alias curlr="ruby ./path/to/curlr.rb"
- implement put / delete / patch
- follow redirects
- request caching
- make it a gem, automagically install the binary
I coded this long time ago (omg 2014!), as there are a tons of libs I don't think I need to work on this anymore :D. I recommend using Excon and net/http (stdlib).