Basically I need to post an json async to my website
Upon posting the async, I have a HTTP 405 Error (Method not permited).
Attempted using request async lead to same error.
The code I made to post is quite simple
local encode = {
key = "key stuff",
phrase1 = main.One.Text,
phrase2 = main.Two.Text,
phrase3 = main.Three.Text,
phrase4 = main.Four.Text
};
local data = http:JSONEncode(encode)
local response = http:PostAsync("https://guyseptimiy.glitch.me/check.php",data,Enum.HttpContentType.ApplicationJson,false)
The php code i have used is quite simple too
$json = file_get_contents('php://input');
$data = json_decode($json);
Assistance would be appreciated