curl -X POST -d "location[lat]=111&location[lng]=222" http://localhost:3000/users/123/devices/456/locations
However rails require authenticity token. To overcome that just turn forgery protection off.
# config/environment.rb
config.action_controller.allow_forgery_protection = false
Tuesday, July 20, 2010
Using curl to post data to a rails app
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment