从android发出http帖子时发现网站或页面错误

时间:2014-04-23 09:00:15

标签: android eclipse xampp

链接到Android的PHP脚本

HttpPost httpPost = new HttpPost("http://192.168.0.101/learning/index.php");

我在logcat中得到了一个HttpResponse的后续错误。我使用宽带互联网连接和xampp作为我的本地服务器。可能是什么问题?

04-23 14:33:45.747: D/response(19050): <html><head><title>Document Error: Site or Page Not           Found</title></head>
04-23 14:33:45.747: D/response(19050):      <body><h2>Access Error: Site or Page Not Found</h2>
04-23 14:33:45.747: D/response(19050):      <p>Cannot open URL</p></body></html>

在index.php中,我有了处理发布数据的代码。

0 个答案:

没有答案