• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deal with doHead method

 
pradeep singh
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Venkata Kumar
Ranch Hand
Posts: 110
Firefox Browser Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please see this reply for similar question
http://www.coderanch.com/t/174980/java-Web-Component-SCWCD/certification/Sample-realtime-doHead-method
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic