How do I test a RESTful PUT (or DELETE) method using curl?
An example PUT following Martin C. Martin's comment:
curl -T filename.txt http://www.example.com/dir/
With -T (same as --upload-file) curl will use PUT for HTTP.
-T
--upload-file