Hi everyone! I was trying to test some http methods besides get and post and I found out I don�t know how to use them! Can someone give me an example of jsp using head, trace, put, delete or connect option?
But you could write a client with a library like Jakarta Commons HttpClient, which does support the other methods. HEAD I think is the same as GET, except it only retrieves the HTTP headers, not the body. And even though they may not be interesting for JSP pages, a servlet might do something with them. That's why HttpServlet has doXYZ methods for all of them.
I don�t think so..that�s the reason I posted this question...I tried to do the same that you but the servlet called doGet() - that�s the default option - for all of them. Thank you guys for the answers!