Need help on using DirectAdmin API (Unauthorized Error)
I am having a weird issue when using DA's API with basic auth (MXroute).
I'm 100% certain the credentials are correct, however I'm getting "Unauthorized" error on every even requests, while the API works fine on every odd requests.
I'll put a screenshot of my current code, as well as the error I'm getting when the "Unauthorized" error happens. If anyone experienced this issue, or knows a fix for it, any input will be highly appreciated.