• 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

HEAD requests

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
 
reply
    Bookmark Topic Watch Topic
  • New Topic