Issue
How do I test a RESTful PUT (or DELETE) method using cURL?
Solution
Using the majuscule -X
flag with whatever HTTP verb you want:
curl -X PUT -d argument=value -d argument2=value2 http://localhost:8080
This example also uses the -d
flag to provide arguments with your PUT request.
Answered By - theabraham Answer Checked By - Timothy Miller (WPSolving Admin)