This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Download lat&long from LM
#3
I've tried to use it in Resident script (of course without <?) but it returns below error:

Resident script:2: attempt to call global 'getconfig' (a nil value)
stack traceback:


I've used your solution and now I send get request to .lp file but interesting thing is that I must fill also login and password when I try to connect localhost(this is from demo machine):
Code:
http = require "socket.http"
result = http.request("http://admin:admin@127.0.0.1/user/long&lat.lp")

longitude, latitude = result:match('(%d*.%d*),(%d*.%d*)')
longitude, latitude = tonumber(longitude), tonumber(latitude)
log(longitude, latitude)
Reply


Messages In This Thread
Download lat&long from LM - by buuuudzik - 18.09.2017, 09:57
RE: Download lat&long from LM - by admin - 18.09.2017, 10:31
RE: Download lat&long from LM - by buuuudzik - 18.09.2017, 10:41
RE: Download lat&long from LM - by admin - 20.09.2017, 12:49
RE: Download lat&long from LM - by buuuudzik - 20.09.2017, 14:19
RE: Download lat&long from LM - by admin - 20.09.2017, 14:27

Forum Jump: