fork download
  1. local http = require("socket.http")
  2.  
  3. -- 5 Second timeout
  4. http.TIMEOUT = 5
  5.  
  6. -- The return parameters are in a different order from luup.inet.wget(...)
  7. result, status = http.request("https://h...content-available-to-author-only...d.com/live-prices/", "run=run")
  8.  
  9.  
Runtime error #stdin #stdout #stderr 0s 15008KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
lua5.3: prog.lua:1: module 'socket.http' not found:
	no field package.preload['socket.http']
	no file '/usr/local/share/lua/5.3/socket/http.lua'
	no file '/usr/local/share/lua/5.3/socket/http/init.lua'
	no file '/usr/local/lib/lua/5.3/socket/http.lua'
	no file '/usr/local/lib/lua/5.3/socket/http/init.lua'
	no file '/usr/share/lua/5.3/socket/http.lua'
	no file '/usr/share/lua/5.3/socket/http/init.lua'
	no file './socket/http.lua'
	no file './socket/http/init.lua'
	no file '/usr/local/lib/lua/5.3/socket/http.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.3/socket/http.so'
	no file '/usr/lib/lua/5.3/socket/http.so'
	no file '/usr/local/lib/lua/5.3/loadall.so'
	no file './socket/http.so'
	no file '/usr/local/lib/lua/5.3/socket.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.3/socket.so'
	no file '/usr/lib/lua/5.3/socket.so'
	no file '/usr/local/lib/lua/5.3/loadall.so'
	no file './socket.so'
stack traceback:
	[C]: in function 'require'
	prog.lua:1: in main chunk
	[C]: in ?