File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes GET and HEAD requests Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "GET and HEAD requests" Watch "GET and HEAD requests" New topic
Author

GET and HEAD requests

Meng Tan
Ranch Hand

Joined: Jan 20, 2001
Posts: 115
Hi,
There are a few things which I am not too sure regarding how Servlet 2.3 handles GET and HEAD requests. Please help.
1. If doHead() method in HttpServlet is overridden, will it be called by the server when there is a HEAD request?
2. Is the HttpServletResponse parameter in the doHead() method a special type of response object which contains no content (only status line and headers)?
3. Since there is a doHead() method available, and if doGet() is overridden, will a OPTIONS request cause doOptions() to still return the header :
Allow : GET, HEAD, TRACE, OPTIONS
Note that HEAD is in the Allow header.
Thanks in advance.
 
jQuery in Action, 2nd edition
 
subject: GET and HEAD requests
 
Similar Threads
Doubt in doHead() method
doHead() example needed
Just wanted to share this....about doGet
About doGet() adn doHead()
HEAD requests.