链接到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中,我有了处理发布数据的代码。