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?
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).