• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to deal with doHead method

 
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 110
Firefox Browser MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please see this reply for similar question
https://coderanch.com/t/174980/java-Web-Component-SCWCD/certification/Sample-realtime-doHead-method
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic