I’m changing the host of my website and my android app witch connect to a php database and I have some troubles with the app connection.
When I’m trying to execute a POST request to validate de user/password, android studio returns next error: NetworkUtility.shouldRetryException: Unexpected response code 403
With the website I haven’t any problem and making the same request, and with older host, app is working fine.
I’ve checked your post but it seems all ok.
My app only call php files to obtain information from the database. Code will be ok because in other host works with any problem. If I call the connection test it works fine.
It seems a problem returning info from de URL that it request by POST with this new host.
I think you missed some of the most important parts of @KangJL’s message, which is the link to this article:
We have security systems in place that make sure that websites hosted with us can only be accessed by browsers. Any other kind of access is not possible, with the very first example in the list being:
Access through Android or iOS mobile apps (mobile browsers work fine).
So if your project requires communication with a mobile app, I’m sorry to say that you will not be able to host it here.