SMS over Http using GET/POST method

shettarvikasshettarvikas Member Posts: 106
hi,

I am trying to send sms from navision to http by using Http GET method, using below code
IF ISCLEAR(WinHttpReq) THEN
    CREATE(WinHttpReq);
  WinHttpReq.Open('GET',VarHyperlink,FALSE);
  WinHttpReq.Send;
  IF NOT WinHttpReq.WaitForResponse() THEN
    ERROR('Timed out');

but I am getting this error message,

[quote
This message is for C/AL programmers:

The call to member Send failed. WinHttp.WinHttpRequest returned the following message:
A connection with the server could not be established
[/quote]

Please let me know, how to resolve this.

Thanks in advance,
vikas

Comments

  • garakgarak Member Posts: 3,263
    Search the Forum for WinHTTP. There are some examples.
    Do you make it right, it works too!
Sign In or Register to comment.