- This topic has 4 replies, 3 voices, and was last updated 6 years, 4 months ago by .
-
Topic
-
Hi all, 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 “
https://xxx.xxxxxxxxx.com/v1/aux/xxxxx “$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 “
https://xxx.xxxxxxxxx.com/v1/aux/xxxxx/id1234 “$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
- The forum ‘Cloverleaf’ is closed to new topics and replies.