I have curl post to implement in pharo, but it seems like there is not much in term of explanation on how to do that. I saw few example but they ARE way simpler than what I need to. I would you do that inn pharos?
$ curl 'https://url_server' \
-X POST \
-H 'key: MY PASSWORD' \
-H 'Content-Type: application/json' \
-d \
'{
"HEADER": "FOO",
"DESK": "POO",
"FORWARDTO": "another_url"
}'
I know that this is similar to post using Znclient like so:
ZnClient new
url: 'url_server';
entity: (ZnEntity
with:'{"HEADER": "FOO",
"DESK": "POO",
"FORWARDTO": "another_url"}'
type: ZnMimeType applicationJson
);
post.
However where does the key goes to using this syntax?