PHP curl請求從服務器獲取響應的權限。Android HttpPost獲取403 Forbidden
但是,當我從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文件... – RvdK
當我調用從PHP的API工作正常,沒有問題,在PHP捲曲的請求。 在HttpPost android調用中出現錯誤。 – John