403 AuthFailureError in Volley

佐手、 提交于 2020-01-07 03:08:07

问题


I am having a very strange situation. I have a running script that makes JsonObjectRequest using Volley Singletone. The script has been working perfectly in domain example1.com. Recently I bought example2.com and hosted in the same hosting account. And when I copy all the php files as it is in the second domain, I am getting error "BasicNetwork.performRequest: Unexpected response code 403".

So, I have exactly same php files called using JsonObjectRequest and Volley Singletone working in example1.com, but not in example2.com. I have check the permission of the files in both domain, they are exactly same (644) and there is no htaccess in either of the domain.

I am stuck and don't understand what else I should check?

Any help will be highly appreciated.


回答1:


Problem is with your server side php script - You can first try to test POST requests using some tool before implementing in your Android application:

If I performed a simple POST request (just using browser not Android) to your provided link I get following error:

403: Forbidden

403 Forbidden

Forbidden

You don't have permission to access /mylibman_4_5.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Apache Server at mylibrarymanager.com Port 80


来源:https://stackoverflow.com/questions/35238324/403-authfailureerror-in-volley

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!