Apache Http Client 5
https://hc.apache.org/httpcomponents-client-5.1.x/quickstart.htmlprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String bbb = URLEncoder.encode("김다미","utf-8"); String aaa = Request.get("https://news.google.com/rss/search?q="+ bbb+ "&hl=ko&gl=KR&ceid=KR:ko").execute().returnContent().asString(); response.setCharacterEnc..
서블릿
2022. 8. 31. 06:45