Send an http request with the possibility to evaluate the answer
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Send an http request with the possibility to evaluate the answer
hi nerds
How can I send http requests with Livecode and evaluate the response from the web server?
I use the community version ...
many Greetings
Gille
How can I send http requests with Livecode and evaluate the response from the web server?
I use the community version ...
many Greetings
Gille
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Send an http request with the possibility to evaluate the answer
Hi,
Not sure what you are asking, but right now go to the dictionary, and look for "URL". Now filter out everything but commands. Do any of those, especially "Launch URL or "revGoURL", help?
Also check out the "related" items in the entry.
And maybe you might like the "get URL" variant of the "get" command.
Craig Newman
Not sure what you are asking, but right now go to the dictionary, and look for "URL". Now filter out everything but commands. Do any of those, especially "Launch URL or "revGoURL", help?
Also check out the "related" items in the entry.
And maybe you might like the "get URL" variant of the "get" command.
Craig Newman
Re: Send an http request with the possibility to evaluate the answer
hello Craig,
Thanks for your quick reply.
Please look here:
https://www.auerswald.de/de/service/125 ... pi-de.html
I would like to send http-Request with the app and evaluate the answer.
many Greetings
Gille
Thanks for your quick reply.
Please look here:
https://www.auerswald.de/de/service/125 ... pi-de.html
I would like to send http-Request with the app and evaluate the answer.
many Greetings
Gille
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Re: Send an http request with the possibility to evaluate the answer
Take a look at tsNet External.
http://lessons.livecode.com/m/4071/l/85 ... t-external
http://lessons.livecode.com/m/4071/l/84 ... chronously
In Dictionary search for tsNet to see all options.
https://milby.us/lc/docs/api.html?
Not everything works in community edition..
https://livecode.com/products/livecode- ... ing-layer/
Regards,
Paul
http://lessons.livecode.com/m/4071/l/85 ... t-external
http://lessons.livecode.com/m/4071/l/84 ... chronously
In Dictionary search for tsNet to see all options.
https://milby.us/lc/docs/api.html?
Not everything works in community edition..
https://livecode.com/products/livecode- ... ing-layer/
Regards,
Paul
Re: Send an http request with the possibility to evaluate the answer
Hi gille,
what Craig said about -> get url"xyz"
To use the first example from the API:
Best
Klaus
what Craig said about -> get url"xyz"
To use the first example from the API:
Code: Select all
...
put url("https://192.168.0.240/app_about") into tServerAntwort
## Check for errors here, I'll leave that to you :-)
## The server returns a JSON array, and LC can convert this to a LC array:
put JSONtoArray(tServerAntwort) into tLCArray
## Now you can parse that array LCArray...
...
Klaus
Re: Send an http request with the possibility to evaluate the answer
cool!
And thank you !!!
I'll try it right away!
And thank you !!!
I'll try it right away!
Re: Send an http request with the possibility to evaluate the answer
Hello Klaus,
can we meet in the German-speaking forum?
I do not really get along.
Can you trace the query?
can we meet in the German-speaking forum?
I do not really get along.
Can you trace the query?