From Sloppy Bushbaby, 1 Month ago, written in Lua.
This paste is a reply to Untitled from Blush Mockingjay - view diff
Embed
  1.    local resptable = {};
  2.    local res, statuscode = http.request{
  3.       url = external_url,
  4.       protocol = "tlsv1_2",
  5.       method = "POST",
  6.       headers = {
  7.          ["content-type"] = "application/x-www-form-urlencoded",
  8.          ["content-length"] = #reqbody
  9.       },
  10.       source = ltn12.source.string(reqbody),
  11.       sink = ltn12.sink.table(resptable)
  12.    };
  13.    local respbody = string.gsub(table.concat(resptable), "\\/", "/")
  14.