Has anybody experience with the PUT method within tclcurl?
I am calling a webservice with method POST with data in JSON format.
With the POST method you can use parameter -postfields.
Example:
set msg “{“id”:”1234″,”text”:”Hello world”}”
set ch [ curl::init ]
set url “
$ch configure -post 1
$ch configure -postfields $msg
etc
This works fine.
But after that I would like to change the content of the message and update it via the PUT method.
That should be something like this:
set msg “{“text”:”Hello other world”}”
set ch [ curl::init ]
set url “
$ch configure -put 1
$ch configure -postfields $msg
etc
At this point I cannot use the -postfields parameter.
What alternative for -postfields can I use to PUT the changes?
Thanks for your response.
Regards,
Micha