406 « HTTP « JSP-Servlet Q&A





1. Getting HTTP 406 while calling external site from within servlet    stackoverflow.com

I have the following code in my servlet:

/**
 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
 */
public void doIt(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

  ...