How do I do an https post in Cache please
Hi,
I have a project that requires me to post a form. I am following the documention at https://developers.clicksend.com/docs/http/v2/#send-an-sms .
In code I need to be able to do the following:
https://api-mapper.clicksend.com/http/v2/send.php ? method=http&username=xxxx&key=xxxx&to=+61411111111,+61422222222,+61433333333,+61444444444,+14055555555,+14055555666,+447777777777,+447778888888,+8615555555555&message=This is a test
From within a browser I am getting the expected response.
PS: the numbers I am using a testing numbers: https://developers.clicksend.com/docs/http/v2/#test-sms-numbers
thanks for any help.
Charles
Hi Charles.
If your doing this from COS then you can use the %NET.HttpRequest class.
The documentation link below should be fairly explanatory, if you get stuck then happy to help more.
https://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?PAGE=CLASS&LIBRARY=%25SYS&CLASSNAME=%25Net.HttpRequest
Sean.
Hi Sean,
Thank you for your reply.
I seem to be stuck on the SSL part. I read about the SSL Configurations but am not sure how to extract the certificate from the browser (and what certificate should I extract).
Can you please provide guide me how to set this up?
Thanks