This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to deal with doHead method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to deal with doHead method" Watch "How to deal with doHead method" New topic

How to deal with doHead method

pradeep singh
Ranch Hand

Joined: Oct 23, 2007
Posts: 339
How to deal with doHead method?How can we call a doHead method in Servlets?
Ex. if we type a url then container called doGet method
and if we send a form using post method then container called doPost method .Now i want to know how we send a Head request so that container called doHead method?

I know it is used for getting headers information and treated like a get method without message body

SCJP 5.0(75%), SCWCD 5.0(88%)
Venkata Kumar
Ranch Hand

Joined: Apr 16, 2008
Posts: 110

please see this reply for similar question

SCJP 5.0, SCWCD 5, preparing for SCDJWS
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Browsers don't use HEAD, but any decent HTTP client library (like Apache Commons HttpClient) can generate HEAD requests, as can JavaScript's XMLHttpRequest object. See yesterday's thread on this topic for more information.
I agree. Here's the link:
subject: How to deal with doHead method
It's not a secret anymore!