12-11-2017 06:55 AM - edited 12-11-2017 06:57 AM
I've project using myRIO 1900.
I need to open an URL or API like a gateway to send an SMS to mobile phone.
the URL is like http://www.sendsms.com/send.php?recv=+60123456789&msg=Hello World
I already try using HTTP Put but it not working.
here the diagram i used:
anyone can help me?? Thank you in advanced.....
12-11-2017 01:18 PM
I would recommend checking with the provider here (sendsms.com) for the webapi (URIs and methods, e.g. GET vs. POST).
12-12-2017 01:40 AM
the webapi was working well...
when i manually enter on browser, i'll get the SMS on my number...
The problem is on LABVIEW. the API link can't execute automatically from Labview.
Thank you for reply..
01-09-2018 10:37 AM - edited 01-09-2018 10:37 AM
The LV code snippet you show is using the HTTP PUT method, however the URI that you're encoding, and the normal method used by plugging a URL into a browser, is using the HTTP GET method. To use HTTP PUT, you'd need to construct a document or form to submit to the server, but it seems that this is not the way that the web API is setup to work (instead, using query strings to tell the server how to field the request).
Check with the service provider to see what interaction method that their web API supports.