# httpclient **Repository Path**: ykp/httpclient ## Basic Information - **Project Name**: httpclient - **Description**: httpclient fluent api - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 4 - **Created**: 2016-03-25 - **Last Updated**: 2021-10-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #httpclient public class HttpClientTest { @Test public void test() { HttpRequest req = HttpRequest .get("http://192.168.1.20:8080/sns-api/user/topNActiveUser?loginUserId=1&loginUserId=2"); HttpResponse res = req.send(); String body = res.body(); System.out.println(body); System.out.println(res.firstHeader("Server")); } @Test public void test1() { HttpRequest req = new HttpRequest(); req.method(HttpMethod.GET).host("192.168.1.20").port(8080).path("/sns-api/user/topNActiveUser") .query("loginUserId", "1"); HttpResponse res = req.send(); String body = res.body(); System.out.println(body); System.out.println(res.firstHeader("Server")); System.out.println(res); } }