I tried learning about HTTPSERVICE and learned about postasync but then i got this error; 21:23:34.839 - HttpError: DnsResolve

Here's the script:

local http = game:GetService("HttpService")
local url = "http://www.somedomain/Home"

local Data = {
      ["Awesome"] = "maxpax2009",
      ["Annoying"] = "hitting toe on the corner of an object",
      ["Table"] = {
["Desert"] = "Bacon sundae with hot fudge and bacon with hot sauce and strawberry icecream",
["Entree"] = "Turkey",
["Appetizer"] = "Mozerella sticks"
          }
}

Data = http:JSONEncode(Data)
gotback = http:PostAsync(url, Data)
Data = http:JSONDecode(Data)

print(Data)

3 comments

0

is the domain yours

0

also use http:PostAsync(url,Data,Enum.HttpContentType.ApplicationJson) instead

0

Does the website need to be mine?