https://hc.apache.org/httpcomponents-client-5.1.x/quickstart.html
protected 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.setCharacterEncoding("utf-8");
response.getWriter().write(aaa);
}
java mail util (0) | 2022.09.23 |
---|