摘要: http的两种请求方式:POST和GET由于Android的SDK包含org.apache.http包,所以不用导入jar了GET方式:String serverURL = "http://127.0.0.1/xxx/xx.jsp?username=abc;HttpGet httpRequest = new HttpGet(serverURL);// 建立http get联机HttpResponse httpResponse = new DefaultHttpClient().execute(httpRequest);// 发出http请求if (httpResponse.getSt 阅读全文
posted @ 2013-04-16 20:02 Marble 阅读(25250) 评论(0) 推荐(0) 编辑