Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
5
Task/HTTPS/Lua/https.lua
Normal file
5
Task/HTTPS/Lua/https.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
local request = require('http.request')
|
||||
local headers, stream = request.new_from_uri("https://sourceforge.net/"):go()
|
||||
local body = stream:get_body_as_string()
|
||||
local status = headers:get(':status')
|
||||
io.write(string.format('Status: %d\nBody: %s\n', status, body)
|
||||
Loading…
Add table
Add a link
Reference in a new issue