• 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

Sample and realtime use of doHead() method?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I learnt HEAD method, which provides only headers in response.
What is the realtime use of this method?
Can anyone give me a simple sample on this using a jsp and servlet?

Regards//Senthil raja
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HEAD requests aren't something you're going to be doing with a browser-based app.

Every once in a while we get a question like yours about one of the more obscure HTTP methods wanting to know how to use it. The simplest answer is don't worry about it, but there have been some threads where Ulf, I, or someone else gave some tidbits to satisfy curiosities.

So, if you're absolutely curious, you could search the forum for this question and figure out how to send a HEAD request to your server (you'll probably have to download some program to allow you to send such requests).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic