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.

HTTP Post
#5
(07.11.2016, 07:17)admin Wrote: Here's the library reference:
http://w3.impa.br/~diego/software/luasoc...ml#request

Hello Admin,
I would like to send by order on a second LM or on another box (Box TV) i use this script but the command is not sent.
I indicate the IP and the password but the request is not sent.
I try directly in the browser and it works.
these scripts are still functional?


local http = require('socket.http')

http.request('http://remote:remote@IP/scada-remote?m=json&r=grp&fn=write&alias=34/1/2&value=1', '')

thanks.
B.R.
Reply


Messages In This Thread
HTTP Post - by Desislav - 04.11.2016, 20:40
RE: HTTP Post - by admin - 05.11.2016, 11:25
RE: HTTP Post - by Desislav - 05.11.2016, 20:39
RE: HTTP Post - by admin - 07.11.2016, 07:17
RE: HTTP Post - by Gadjoken - 09.05.2019, 08:46
RE: HTTP Post - by Daniel - 09.05.2019, 09:10
RE: HTTP Post - by admin - 09.05.2019, 10:09
RE: HTTP Post - by Gadjoken - 09.05.2019, 11:37
RE: HTTP Post - by admin - 09.05.2019, 11:53
RE: HTTP Post - by Gadjoken - 09.05.2019, 12:10
RE: HTTP Post - by admin - 09.05.2019, 12:18
RE: HTTP Post - by Gadjoken - 09.05.2019, 12:55
RE: HTTP Post - by admin - 09.05.2019, 13:05
RE: HTTP Post - by Gadjoken - 09.05.2019, 13:18
RE: HTTP Post - by admin - 09.05.2019, 13:28
RE: HTTP Post - by Gadjoken - 09.05.2019, 14:20
RE: HTTP Post - by domobrain - 11.09.2023, 11:04
RE: HTTP Post - by Daniel - 11.09.2023, 11:06
RE: HTTP Post - by domobrain - 13.09.2023, 14:11

Forum Jump: