Page 1 of 1

Interface with web server

Posted: Sat Jul 04, 2015 1:56 pm
by kolia
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

Re: Interface with web server

Posted: Sun Jul 05, 2015 6:40 pm
by SparkOut
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.