Skip to content

HTTPS support ? #3

Closed
Closed
@sebcante

Description

@sebcante

Hi,

First let me congrats you with great lib. I was just wondering if HTTPS was supported ? i do not think to have any luck with it. i managed to get http working ok.

thanks

-seb

local hc = http:new()
local ok, code, headers, status, body  = hc:request {
    url = "https://secure.com/auth",
    method = "POST", 
    scheme = "https",
    port = "443",
    headers = { ["Content-Length"] = string.len(post_args_escaped), ["Content-Type"] = "application/x-www-form-urlencoded" },
    body = post_args_escaped,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions