【发布时间】:2013-07-05 11:23:10
【问题描述】:
PHP curl 请求从服务器获取正确响应的数据。
但是当我从 Android 调用 HttpPost 时,它会返回此错误:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /service/v2/rest.php
on this server.</p>
<hr>
<address>Apache/2.2.0 (Fedora) mod_fcgid/2.3.6 PHP/5.2.17 mod_python/3.3.1 Python/2.4.3
mod_perl/2.0.4 Perl/v5.8.8 Server at nl.wooning.cz Port 80</address>
</body></html>
请帮帮我。
提前谢谢...!!!
【问题讨论】:
-
可能需要先登录才能访问php文件...
-
当我从 PHP 调用 api 时,PHP curl 请求中没有问题。在 HttpPost android 调用中出现错误。
标签: android html http-post androidhttpclient