Thursday, 08 March 2012 12:46
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
Comments:
Latest Articles
- Crypto collisions cause denial of service in major hashes
- Passwords, SSH keys exposed on GitHub
- Oracle says Java security, communications improvements in pipeline
- Anonymous threatens release of sensitive US Government files
- Here You Can Learn Some About Silicon Photonics
- IBM pushes silicon photonics with on-chip optics
- Windows Server 2012 review: Should I upgrade?
- Wikileaks Says Aaron Swartz Was a Possible Source
- UK Government must be more vigorous in approach to cyber security
- USB 2, USB 3, Firewire, Thunderbolt Comparison
Related Articles
- USB 2, USB 3, Firewire, Thunderbolt Comparison
- iPhone tops US market, but trounced by Android in world+dog
- US judge SLAMS both IBM and the SEC over bribery settlement
- Learn to type on keyboard faster and with fewer errors
- IT Salary Survey: 2012 job satisfaction and salary trends
- Gnuplot 4.6 arrives with code block support
- Mozilla stages release of Firefox 11
- Google backs UK start-ups with seven-storey Campus
- Go language reaches release candidate stage
- Django sets out plans for Python 3 migration
- Google-Oracle patent trial set for April
- Facebook and Google go on trial in India over censorship
- Mozilla looks at supporting H.264 video again
- Three candidates for the post of Debian project leader
- IronPython 2.7.2 can load libraries from zip archives
- TIOBE language index shows the rise of JavaScript
- OpenStreetMap completing move to Open Database Licence
- Yahoo sues Facebook over wide-ranging patents
- EU floats settlement with e-book publishers
- DoJ clears way for Apple-Microsoft to buy Nortel patents


