HTTPie makes talking to HTTP services easier


User Rating: / 0


 A new command line tool, HTTPie[1], is designed to make talking to HTTP services easier for developers. When working with a new HTTP-based API, developers may need to issue arbitrary commands to the API. This is often done using the curl tool, but the syntax of that is not ideal. For example, a call as a put method with a variable "hello" set to "world" could look like this:

curl -i -X PUT -H 'Content-Type:application/json; charset=utf-8'
-d '{"hello":"world"}' http://httpbin.org/put

As a command gets more complex, so the curl request gets more complex. The BSD-licensed HTTPie tool sets out to make the process a lot simpler, so that the above command is simplified to:

http PUT httpbin.org/put

Read more