How do I test a RESTful PUT (or DELETE) method using cURL?
Using the -X flag with whatever HTTP verb you want:
-X
curl -X PUT -d arg=val -d arg2=val2 localhost:8080
This example also uses the -d flag to provide arguments with your PUT request.
-d
2.1m questions
2.1m answers
60 comments
57.0k users