restez is a RESTful HTTP command-line client and library.
Examples:
Fetch a JSON representation of a resource:
$ restez -v GET http://localhost/app/resource/3 --accept application/json
-- Response Headers --
status: 200
content-length: 61
content-location: http://localhost/app/resource/3
server: Apache/2.0.63 (Unix) DAV/2 mod_wsgi/2.3 Python/2.5.2
pragma: no-cache
cache-control: no-cache
date: Thu, 08 Jan 2009 12:14:55 GMT
content-type: application/json; charset=utf-8
-- Response Body --
{"timestamp": null, "product": "0", "user": "3", "result": 0}
Post a JSON request to a web app:
$ restez -v POST http://localhost/api/index data.json
-- Response Headers --
status: 200
content-length: 59
server: CherryPy/2.3.0
date: Thu, 08 Jan 2009 11:56:28 GMT
content-type: application/json
-- Response Body --
{"status": "success", "version": "1.2.2"}
Product's homepage
Requirements:
· Python