• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GET and HEAD requests

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic