This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to deal with doHead method" Watch "How to deal with doHead method" New topic
Author

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
http://www.coderanch.com/t/174980/java-Web-Component-SCWCD/certification/Sample-realtime-doHead-method


SCJP 5.0, SCWCD 5, preparing for SCDJWS
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41634
    
  55
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to deal with doHead method