본문 바로가기 메뉴 바로가기

개발자의 끄적끄적..🥳

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

개발자의 끄적끄적..🥳

검색하기 폼
  • ☆ (56)
    • My Life (1)
      • 포스팅 (1)
    • Development (55)
      • JAVA (16)
      • Database & SQL (4)
      • Javascript & jQuery (6)
      • Spring (2)
      • React (1)
      • Git (2)
      • Error (6)
      • TIP (5)
      • .etc (13)
  • 방명록

Http POST urlencoded (1)
[JAVA] Http POST urlencoded

public int postRequset(Map paramMap) throws IOException { @Cleanup CloseableHttpClient client = HttpClientBuilder.create().build(); Map requestMap = new HashMap(); requestMap.put("type" , type); //파라메터 HttpPost post = new HttpPost("url"); post.setHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); List paramList = convertParam(requestMap); post.setEntity(new UrlEncodedForm..

Development/JAVA 2022. 4. 11. 10:02
이전 1 다음
이전 다음
링크
최근에 올라온 글
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바