curl

Usando curl para pruebas

# POST
$ curl -i --url http://localhost:9090/asides -d body='REST es chevere'
...
# GET
$ curl -i --url http://localhost:9090/asides/1.xml 
...
# PUT 
$ curl -i --url http://localhost:9090/asides/1 -d body="REST es super-bien' -X PUT
...
# DELETE
$ curl -i --url http://localhost:9090/asides/3 -X DELETE
...
$ curl -i --url http://localhost:9090/users -X POST -d body="REST es cool" 
HTTP/1.1 200 OK
Connection: close
Date: Thu, 25 Mar 2010 22:59:50 GMT
Content-Type: text/html
Content-Length: 35
Set-Cookie: rack.session=BAh7AA%3D%3D%0A; path=/

"application/x-www-form-urlencoded"  << le pedí que me devolvierá el content-type solicitado...
$ curl -i -X POST -F "file=@img.png;type=image/png" http://localhost:9292/huellas/create
HTTP/1.1 200 OK 
Date: Sun, 11 Mar 2012 16:53:55 GMT
Content-Type: text/html;charset=utf-8
Connection: Keep-Alive
X-Xss-Protection: 1; mode=block
X-Frame-Options: sameorigin
Server: WEBrick/1.3.1 (Ruby/1.8.7/2011-12-28)
Content-Length: 46