How do I go about getting url contents in lua?
#1
Is this something I can use?
http://www.mc-server.org/wiki/doku.php?i...ttprequest

If so, can an example be provided?
Reply
Thanks given by:
#2
This works: (Thanks Kwen!)


local fp = io.popen('wget -U"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6" "URL'" -o NUL -Otemp.html >NUL')
fp:close()
fp = io.open("temp.html","r")

need to download and install wget for it to work on windows.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)