Sample code for 30+ languages & platforms
Lua

HTTPS GET using SSL/TLS

See more HTTP Examples

To retrieve a resource using SSL/TLS (i.e. HTTPS), simply use a URL that begins with "https://". (This applies to any Chilkat HTTP method that has a URL argument, such as QuickGetStr, GetHead, QuickDeleteStr, etc.)

Chilkat Lua Downloads

Lua
local chilkat = require("chilkat")

-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.

local http = chilkat.Http.new()

-- Send the HTTP GET and return the content in a string.
local html = http:quick_get_str("https://www.chilkatsoft.com/helloWorld.json")
if not http.last_method_success then
    print(http.last_error_text)
    return
end

print(html)