Return to Snippet

Revision: 44744
at April 17, 2011 06:29 by abstraktor


Initial Code
curl -s -XPUT -d"user[name]=abstraktor" -D- http://localhost:30/users/7 -o/dev/null

Initial URL


Initial Description
Der folgende Aufruf führt einen PUTrequest durch und zeigt (nur!!) den antwort-header an. Damit es funktioniert muss in app/controllers/application_controller.rb die zeile protect_from_forgery auskommentiert werden.

Initial Title
REST-Antwort http-header debuggen

Initial Tags
curl

Initial Language
Bash