fetchi
Note: Many Content-Type
s are not supported yet.
Usage
Usage: fetchi [options] url Options: -V, --version output the version number -X, --method <method> method of this HTTP request -d, --data <data> request body payload -c, --content-type <mime type name> set Content-Type header -H, --headers [header1, header2, ...] set other headers -h, --help output usage information
Examples
$ fetchi http://httpbin.org/anything200 OKConnection: closeServer: meinheld/0.6.1Date: Sat, 11 Nov 2017 16:04:45 GMTContent-Type: application/jsonAccess-Control-Allow-Origin: *Access-Control-Allow-Credentials: trueX-Powered-By: FlaskX-Processed-Time: 0.000786066055298Content-Length: 413Via: 1.1 vegur
$ fetchi http://httpbin.org/user-agent -H "user-agent: lorem"200 OKConnection: closeServer: meinheld/0.6.1Date: Sat, 11 Nov 2017 16:06:18 GMTContent-Type: application/jsonAccess-Control-Allow-Origin: *Access-Control-Allow-Credentials: trueX-Powered-By: FlaskX-Processed-Time: 0.000539064407349Content-Length: 28Via: 1.1 vegur
$ fetchi http://httpbin.org/post -X post -d '{"name": "fetchi", "decription": "yet another curl like HTTP request CLI tool"}'