336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
https://web-inf.tistory.com/64
jetty with json
SslContextFactory sslContextFactory = new SslContextFactory();
HttpClient httpClient = new HttpClient(sslContextFactory);
httpClient.setFollowRedirects(false);
httpClient.start();
Request request = httpClient.POST("https://a1.easemob.com/yinshenxia/yinshenxia/users");
request.header(HttpHeader.CONTENT_TYPE, "application/json");
request.content(new StringContentProvider("{\"username\":\"jliu\",\"password\":\"123456\"}","utf-8"));
ContentResponse response = request.send();
String res = new String(response.getContent());
System.out.println(res);
httpClient.stop();
'IT > Java' 카테고리의 다른 글
자바 int -> string format (1) | 2021.06.09 |
---|---|
Thread 변수 공유 (0) | 2021.06.09 |
Java 현재 날짜 및 조작 (0) | 2021.06.09 |
jetty server (0) | 2021.06.07 |
자바 ArrayList<Object> 정렬 (0) | 2020.09.23 |