I am wondering if there is support in the built-in LUA for MushClient for SSL connections over http.
Everything on the internet says I have to install LuaSec and LuaSocket but I'm guessing with MUSHClient its probably slightly unique compared to the normal installs.
I could go into all the things i've tried but in the end they never work.
does MUSHClient have built in SSL (through LUA) connection abilities?
this is a pure example but something like this, only for SSL:
local http=require("socket.http");
local request_body = [[email=<<mydiscordemail>>&password=<<mydiscordpassword>>]]
local response_body = {}
local res, code, response_headers = http.request{
url = "https://discordapp.com/api/",
headers =
{
["Authorization"] = "Bot <<mybottoken>>";
},
source = ltn12.source.string(request_body),
sink = ltn12.sink.table(response_body),
}
I can actually get non-ssl requests to work, but the SSL ones are not working and despite my many attempts to "install" luasec and luasocket into the mushclient install location, it has not even come close.
any help would be greatly appreciated, or if it isn't supported, that helps to (helps me to stop wasting time!!)
THANK YOU!!!!
Everything on the internet says I have to install LuaSec and LuaSocket but I'm guessing with MUSHClient its probably slightly unique compared to the normal installs.
I could go into all the things i've tried but in the end they never work.
does MUSHClient have built in SSL (through LUA) connection abilities?
this is a pure example but something like this, only for SSL:
local http=require("socket.http");
local request_body = [[email=<<mydiscordemail>>&password=<<mydiscordpassword>>]]
local response_body = {}
local res, code, response_headers = http.request{
url = "https://discordapp.com/api/",
headers =
{
["Authorization"] = "Bot <<mybottoken>>";
},
source = ltn12.source.string(request_body),
sink = ltn12.sink.table(response_body),
}
I can actually get non-ssl requests to work, but the SSL ones are not working and despite my many attempts to "install" luasec and luasocket into the mushclient install location, it has not even come close.
any help would be greatly appreciated, or if it isn't supported, that helps to (helps me to stop wasting time!!)
THANK YOU!!!!