Skip to content

Instantly share code, notes, and snippets.

@pkulchenko
Created May 17, 2018 19:14
Show Gist options
  • Save pkulchenko/156dfbae6bb5e5bdfcaca054823459d3 to your computer and use it in GitHub Desktop.
Save pkulchenko/156dfbae6bb5e5bdfcaca054823459d3 to your computer and use it in GitHub Desktop.
local https = require "ssl.https"
local ltn12 = require "ltn12"
local response = {}
local r, c, h, s = https.request {
url = "https://api.github.com/repos/akbooer/openLuup/contents?ref=master",
sink = ltn12.sink.table(response),
protocol = "tlsv1_2"
}
print (r,c,h,s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment