curl: basic auth + json + post

curl --user user:pass -k -v -H "Content-Type: application/json; charset=utf-8" -X POST -d '{"text":"message"}' https://somewhere.com/rest/test

Leave a Reply

Your email address will not be published. Required fields are marked *