I think there is some thing wrong with your method signature.
in your servlet code you write
public class ShowHeadersServlet extends HttpServlet {
public void goGet(HttpServletRequest req,HttpServletResponse res)
throws ServletException, IOException {
// ..........
}
to support GET or POST method you should override at least one service method :
public void doGet(HttpServletRequest req,HttpServletResponse res)
throws ServletException, IOException {
// to handle http GET method
}
or
public void doPost(HttpServletRequest req,HttpServletResponse res)
throws ServletException, IOException {
// to handle http POST method
}
I think your method shoulbe doGet() not goGet()
regards,
WYasa