Interface with web server

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kolia
Posts: 82
Joined: Thu May 28, 2015 3:53 pm

Interface with web server

Post by kolia » Sat Jul 04, 2015 1:56 pm

Hello,
I have to get logged on/off (get authenticated) against a Web werver, parse some html page (get) and send back some data (post) in order to interact with it. In other words, I have to programmatically interact with the Web server as a user would do it with the user interface.What kind of libraries could be used? Are there snippets available in order to speed up the learning curve?
Added : pages are dynamically generated (javascript)
Thank you
Nicolas
Nicolas
LC 7.1 on Windows 8.1 and on MAC OS 10.10.5 Xcode 6.4 - 7.1

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: Interface with web server

Post by SparkOut » Sun Jul 05, 2015 6:40 pm

http://forums.livecode.com/viewtopic.php?p=83993#p83993 is probably a relevant thread for you. As for dynamically generated content via javascript, that will introduce more complexity. How you achieve the result will depend a lot on the nature of the site. It can be done, I think, but you will need to analyse what is being requested from the client side and what in the javascript can be bypassed with processing to make the request directly, or what json queries to catch the results from and then parse with a json library.

Post Reply