burl(1)
is a tiny shell script augmenting curl(1)
with some helpful shortcuts.
$ make install
By default burl(1)
will assume "http://localhost:3000", however you
can alter this by exporting BURL
in your terminal session or .profile
:
$ export BURL=http://site-im-testing.com
$ burl /pathname
POST data as "Content-Type: application/json":
$ burl -j {"name":"tobi"} /user
With burl(1)
you can define header fields without -H
:
$ burl If-None-Match: etag /users
$ burl If-None-Match: etag Accept: application/json /users
Currently .json
, .text
and .html
shorthands are
available and set the Accept header field for you:
$ burl /users
$ burl /users .json
$ burl /users .text
$ burl /users .html