• Post Reply Bookmark Topic Watch Topic
  • New Topic

sample and realtime use of doHead() method?  RSS feed

 
Senthilraja Chandran
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your only purpose is to track what is going on with the headers you could use this. I have never used HEAD so far and most browsers only support GET and POST.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It could be used by browsers or proxies to determine if a resource has changed since it was last requested, without actually requesting it. That's useful if the server doesn't support conditional GET, which does something similar on teh server. But I don't think any browser does this; not sure about caching proxies.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!