Http requests return 405, and requests return 405
Generally, you use the default method = get, and you need to change it to post.
Why does http post always return the 405 status in android?
HTTP Error 405-Resource Access prohibited.
This may be because the server has access settings. You can ask the person who is the server.
Or use another server to test whether it is a server problem or your code problem.
HTTP Error 405-Resource Access prohibited
403 Forbidden: the resource is unavailable. The server understands the customer's request, but rejects the request. This is usually caused by the permission settings of files or directories on the server.
403-forbidden access: IIS defines many different 403 errors, which indicate a more specific cause of the error: · 403. 1-the execution access is forbidden.
· 403-Read access is forbidden.
· 403-write access is forbidden.
· 403-require SSL.
· 403. 5-require SSL 128.
· 403-the IP address is rejected.
· 403-client certificate required.
· 403-site access is rejected.
· 403-too many users.
· 403-the configuration is invalid.
· 403-password change.
· 403-access to the ing table is denied.
· 403-client certificate revoked.
· 403-reject the directory list.
· 403-exceeds the client access permission.
· 403-the client certificate is untrusted or invalid.
· 403-the client certificate has expired or has not yet taken effect.
· 403-the requested URL cannot be executed in the current application pool. This error code is dedicated to IIS 6.0.
· 403. 19-CGI cannot be executed for clients in the application pool. This error code is dedicated to IIS 6.0.
· 403. 20-logon to Passport failed. This error code is dedicated to IIS 6.0.