首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

java向使用发送HTTP请求

2012-11-08 
java向应用发送HTTP请求public void doPost(HttpServletRequest request, HttpServletResponse response)t

java向应用发送HTTP请求

public void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {response.setCharacterEncoding("utf-8");PrintWriter out = response.getWriter();String reqXml = request.getParameter("req");//来自客户端的请求参数out.println(handleData(reqXml));out.flush();out.close();}

?? 然后配置web.xml

?

热点排行