Module:Test

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Edit] [Purge] Documentation

Usage

11Lua error in package.lua at line 80: module 'socket.http' not found.11 >Lua error in package.lua at line 80: module 'socket.http' not found.

See also

--

local http = require('socket.http')
local p = {}

-- start for Template:Test
function p.test(frame)
	return 'hdgfdsgf'
end

function p.testhello(frame)
	
	local body, statusCode, headers, statusText = http.request('http://w3.impa.br/~diego/software/luasocket/http.html')

    return statusText
end
return p