How do I go about getting url contents in lua?
#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:


Messages In This Thread
RE: How do I go about getting url contents in lua? - by rs2k - 11-10-2011, 03:11 AM



Users browsing this thread: 1 Guest(s)