一个优秀的http实现框架

 package com.ming;

 import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest; public class UnirestUtil { public static void main(String[] args) throws Exception { HttpResponse<String> jsonResponse = Unirest.post("http://www.baidu.com")
.header("accept", "application/json")
.field("couponCode", "123")
.asString(); System.out.println(jsonResponse.getBody()); }
}

http://unirest.io/java.html

http://pan.baidu.com/s/1kTWATN5

上一篇:WPF中List的Add()与Insert()方法的区别


下一篇:excel在一个图表内,显示折线图和柱状图