排球中的403 AuthFailureError [英] 403 AuthFailureError in Volley
问题描述
我有一个非常奇怪的情况.我有一个正在运行的脚本,该脚本使用Volley Singletone进行JsonObjectRequest.该脚本在example1.com域中运行良好.最近,我买了example2.com并托管在同一托管帐户中.而且,当我复制所有php文件在第二个域中的文件时,出现错误"BasicNetwork.performRequest:意外的响应代码403".
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".
因此,我在example1.com中使用JsonObjectRequest和Volley Singletone调用了完全相同的php文件,但在example2.com中却没有.我已经检查了两个域中文件的许可权,它们完全相同(644),并且在任何一个域中都没有htaccess.
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.
推荐答案
服务器端php脚本存在问题-您可以先尝试使用某种工具来测试POST请求,然后再在Android应用程序中进行实施:
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:
如果我对您提供的链接执行了简单的POST请求(仅使用浏览器而不是Android),则会收到以下错误消息:
If I performed a simple POST request (just using browser not Android) to your provided link I get following error:
403:禁止
403禁止
禁止
您 没有访问此服务器上的/mylibman_4_5.php的权限.
403 Forbidden
Forbidden
You don't have permission to access /mylibman_4_5.php on this server.
此外,尝试执行404找不到错误 使用ErrorDocument来处理请求.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
这篇关于排球中的403 AuthFailureError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!