table of contents
other versions
- jessie 0.13.0-2
- stretch 0.13.7-1+deb9u1
- testing 0.16.2+dfsg1-2
- stretch-backports 0.15.6-1~bpo9+1
- unstable 0.16.2+dfsg1-3
HTTPARTY(1) | User Commands | HTTPARTY(1) |
NAME¶
httparty - query web services and examine the resulting outputDESCRIPTION¶
`httparty' is a command-line tool to query query web services and examine the resulting output. By default it will output the response as a pretty-printed Ruby object (useful for grokking the structure of output). This can also be overridden to output formatted XML or JSON.USAGE¶
httparty [ options] [url]
OPTIONS¶
- -f, --format [FORMAT]
- Output format to use instead of pretty-print ruby: plain, csv, json or xml
- -a, --action [ACTION]
- HTTP action: get (default), post, put, delete, head, or options
- -d, --data [BODY]
- Data to put in request body (prefix with '@' for file)
- -H, --header [NAME:VALUE]
- Additional HTTP headers in NAME:VALUE form
- -v, --verbose
- If set, print verbose output
- -u, --user [CREDS]
- Use basic authentication. Value should be user:password
- -r, --response-code
- Command fails if response code >= 400
- -h, --help
- Show help documentation
EXAMPLE¶
httparty "http://twitter.com/statuses/public_timeline.json"June 2014 | httparty 0.13.0 |