Resolved inet and Slack
- How-to
- ATK Gimmy Susan
- PowerBuilder
- Monday, 17 December 2018 03:54 PM UTC
GO ON ...
With the call of CURL it works, now I would like to try using a post.
What am I doing wrong ? Posturl return: -1 -- General error
-
InternetResult ls_result
inet iinet_base
blob urldata
string urlname
long ll_ret
string urlheader
urlname = "https://hooks.slack.com/services/T9F1H40UR/BEALE0WLS/BDtGxxxxxxxxxxsPLmuoBP7iC"
urldata = blob('')
urlheader = "Content-type: application/json " + '{ "text": "Hello, world." }'
GetContextService("Internet", iinet_base)
ll_ret = iinet_base.posturl(urlname, urldata , urlheader, ls_result)
Messagebox("Return: " + string(ll_ret) ,string(ls_result))
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.