Getting a http status 405 error - What am I doing wrong? or Why am I seeing http status 405 and how d

16 Replies, 810 Views

Ugh, http status 405 is the worst.

First thing I’d do is verify the endpoint URL. Sounds dumb, but I’ve wasted hours because of a typo.

Next, check if the server expects a trailing slash or not. Some APIs are weirdly strict about that.

If all else fails, curl is your friend:

```
curl -X POST -H "Content-Type: application/json" -d '{"key":"value"}' https://your-api.com/endpoint
```

Messages In This Thread



Users browsing this thread: 1 Guest(s)