This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes HEAD requests Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HEAD requests" Watch "HEAD requests" New topic
Author

HEAD requests

Shuaib Gill
Ranch Hand

Joined: May 29, 2001
Posts: 62
Hi all,
I am new to Java Servlet programming. I understand GET requests represent when a user fills out a form on html. POST request can be used when the information sent by the client will update or change a database in some way. Can someone tell me what HEAD requests are used for? In html, <head></head> tags are used to give the website a title. How are HEAD requests used in Servlet programming? Also why would a client want to see only the headers of a response? Are Headers in Servlet programming referring to <head> </head> in HTML? What about the <meta> tags in between <head> tags in HTML? Do servlet programs manipulate these tags?


programmer77
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12755
    
    5
The headers referred to are part of the HTTP protocol, not the <head> tag contents of a page. By looking at the Last-Modified value in the response, a browser can decide whether or not to use cached data.
Bill

------------------
author of:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HEAD requests
 
Similar Threads
Netsacpe Browser with Orion Server Problem.
doHead( ) functionality doubt?
servelts + css odd problems
about struts
Using jQuery $.post() - Does it affect request.getRequestDispatcher?