How to make the PUT HTTP request with JSON data

 
You can use the TclHttp component for sending the PUT request as follows:
clHttp1.Authorization := clOAuth.GetAuthorization();
requestStrings.Text := '{"name": "{{value}}"}';
clHttp1.Put('{{url}}', 'application/json', requestStrings);
If you want to get the server response, please use the other overloaded version of the Put method:
 
clHttp1.Put('{{url}}', 'application/json', requestStrings, responseStrings);

Add Feedback