Skip to content

makevoid/curlr

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Curlr

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

Sample usage:

ruby .../path_to/curlr.rb http://makevoid.com

Sample usage:

(Note: you need to alias the command as there is no curlr gem)

curlr http://makevoid.com

shorthand for:

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&param2=abc

Alias set up

edit your bashrc / zshrc and add

alias curlr="ruby ./path/to/curlr.rb"

improvements:

  • implement put / delete / patch
  • follow redirects
  • request caching
  • make it a gem, automagically install the binary

(:D)


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).

@makevoid

About

Curlr - CLI tool to "curl" sample project I made in 2014

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages