bbgurl

bbgurl: A tiny cli http client; a thin wrapper around mikeal/request. Named by @blakmatrix.

npm install bbgurl
1 downloads in the last day
8 downloads in the last week
9 downloads in the last month

bbgurl

Usage:

$ bbgurl
bbgurl: A tiny cli http client; a thin wrapper of mikeal/request. Named by @blakmatrix.

USAGE: bbgurl <url> [<options>]

Options:
  --body, -d            String body for http request.               
  --followRedirect      Follow the first http 30x redirect (if any).  [boolean]  [default: true]
  --followAllRedirects  Follow *all* http 30x redirects (if any).     [boolean]  [default: false]
  --headers, -H         A JSON representation of any headers.       
  --logfile             Optional file to write logs to.             
  --method, -X          HTTP method.                                  [default: "GET"]
  --output, -o          HTTP response output file (default stdout)  
  --strictSSL           Require that SSL certificates be valid.       [boolean]  [default: false]
  --verbose, -v         Output logs to stderr.                        [boolean]

Argument check failed: Must specify a uri.

A Few Examples:

Hit an endpoint

$ bbgurl http://whatismyip.nodejitsu.com/index.json
{ "ip": "71.198.76.200" }

Set some headers

$ bbgurl http://whatismyip.jit.su -H '{ "accept": "application/json" }'
{ "ip": "71.198.76.200" }

Download a tarball

$ bbgurl --verbose http://nodejs.org/dist/v0.8.4/node-v0.8.4.tar.gz -o node-v0.8.4.tar.gz
[request] GET http://nodejs.org/dist/v0.8.4/node-v0.8.4.tar.gz
$ tar -xzf node-v0.8.4.tar.gz 
$ cd node-v0.8.4/
$ ls
AUTHORS    BSDmakefile  common.gypi  deps  lib      Makefile  README.md  test   vcbuild.bat
benchmark  ChangeLog    configure    doc   LICENSE  node.gyp  src        tools

License:

MIT/X11.

npm loves you