local resptable = {}; local res, statuscode = http.request{ url = external_url, protocol = "tlsv1_2", method = "POST", headers = { ["content-type"] = "application/x-www-form-urlencoded", ["content-length"] = #reqbody }, source = ltn12.source.string(reqbody), sink = ltn12.sink.table(resptable) }; local respbody = string.gsub(table.concat(resptable), "\\/", "/")