How to Send PUT Request with Curl? [JavaScript/AJAX Code]

To make a PUT request with Curl, you need to use the -X PUT command-line option. Request data is passed with the -d option. If you pass -d and omit -X, Curl will automatically choose the HTTP POST method for your request. The -X PUT option explicitly tells Curl to choose the HTTP PUT method instead of POST. The JavaScript/AJAX code was automatically generated for the Curl PUT example.
Loading...