Hello i nead help with PerformHttpRequest

Hello
when i use with expample

PerformHttpRequest("https://api.domin.com/api/license", function (errorCode, resultData, resultHeaders, errorData)
  print("Returned error code:" .. tostring(errorCode))
  print("Returned data:" .. tostring(resultData))
  print("Returned result Headers:" .. tostring(resultHeaders))
  print("Returned error data:" .. tostring(errorData))
end)

it not work but if i do thise

PerformHttpRequest("http://ip/api/license", function (errorCode, resultData, resultHeaders, errorData)
  print("Returned error code:" .. tostring(errorCode))
  print("Returned data:" .. tostring(resultData))
  print("Returned result Headers:" .. tostring(resultHeaders))
  print("Returned error data:" .. tostring(errorData))
end)

it work so what is the error i do ?

I use next.js and a cloudflare
when i use the domain in browser it works
the error 0
if you want send me your discord and go a call

PerformHttpRequest accepts 3 params only:

PerformHttpRequest(url, function(statusCode, responseBody, responseHeaders)
end, method, data, headers)

For example you can do a Get request

PerformHttpRequest(
  "https://jsonplaceholder.typicode.com/todos/1",
  function(statusCode, response, headers)
      print("Status:", statusCode)
      print("Body:", response)
  end,
  "GET"
)

Or a Post like such

PerformHttpRequest(
  "https://httpbin.org/post",
  function(statusCode, response, headers)
      print("Status:", statusCode)
      print("Body:", response)
  end,
  "POST",
  json.encode({license = "abc123"}),
  {
      ["Content-Type"] = "application/json"
  }
)

Hope it helps