posts - 101,  comments - 29,  trackbacks - 0

创建步骤:
  1、创建HttpGet(或HttpPost)对象,将要请求的URL通过构造方法传入HttpGet(或HttpPost)对象中;
   2、使用DefaultHttpClient类的execute方法发送HTTP GET或HTTP POST 请求,并返回HttpResponse对象;
   3、通过HttpResponse接口的getEntity方法返回响应信息。

Http连接POST请求


Http连接GET请求



posted on 2012-03-22 22:02 mixer-a 阅读(958) 评论(1)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: