Help with httpService:PostAsync

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to be able to send a POST to a ip address, via port 443.
  2. What is the issue? Include screenshots / videos if possible!
    Right now when I try to post it, it returns the error “403 Service Unavailable”
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve looked all over through multiple sites and can’t find the answer as to why.
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
httpService:PostAsync("http://111.111.11.111:443", requestBody, Enum.HttpContentType.ApplicationJson, false)

I’m pretty new to http requests and servers in general. I have the server setup on a linux OS, and it works when I visit the IP through a browser. Just not when I try to PostAsync to it. Anyone have any suggestions?

1 Like

403 means that you are not authorized to access the web server but the server understood your request.

In simple terms, a 403 error is a status code that indicates that the server does understand the request you gave it but refuses to authorize it. This can usually occur if you do not have permission to access a web page, for an example, now when you are posting to that IP address whatever, do you need an Authorization Key in order to access it or something similar?

1 Like

Also, if you find this helpful, read this: HTTP response status codes - HTTP | MDN (mozilla.org)

1 Like

Just for context, figured out I was using .get on server when I should’ve been using .POST (100% my fault) Thank you for your help though!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.