• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

http head methods

 
rakesh mittal
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

can anybody tell me
what is the use of http head methods
please tell the specific use of http methods

 
Rohan Kayan
Ranch Hand
Posts: 123
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For Head method - As it only request for the header part of the response , there will be no body if we use Head http method . This method is generaly used for checking any change in header values like testing hypertext links for validity, accessibility, and recent modification.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anybody tell me how to generate HEAD request from browser. I am trying it using method="head" is form element. But the in servlet which is defined in action element the request.getMethod() return GET in service method ( I have overriden the service method because for every Http Method except for POST it is executing doGet()).

Thanks
 
rakesh mittal
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Narendra Dhande:
Hi,

Can anybody tell me how to generate HEAD request from browser. I am trying it using method="head" is form element. But the in servlet which is defined in action element the request.getMethod() return GET in service method ( I have overriden the service method because for every Http Method except for POST it is executing doGet()).

Thanks


hi

overriding the get request automatically supports
http head requests.
a head request is a get request that returns no body
thats why request.getMethod() return GET


 
rakesh mittal
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anybody tell me out of all http methods

which are idempotent
and which are not idempotent
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic