| Author |
http head methods
|
rakesh mittal
Greenhorn
Joined: Oct 10, 2005
Posts: 27
|
|
can anybody tell me what is the use of http head methods please tell the specific use of http methods
|
 |
Rohan Kayan
Ranch Hand
Joined: Sep 17, 2004
Posts: 123
|
|
|
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.
|
SCWCD 1.4, SCJP 1.4
|
 |
Narendra Dhande
Ranch Hand
Joined: Dec 04, 2004
Posts: 950
|
|
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
|
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
|
 |
rakesh mittal
Greenhorn
Joined: Oct 10, 2005
Posts: 27
|
|
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
Joined: Oct 10, 2005
Posts: 27
|
|
can anybody tell me out of all http methods which are idempotent and which are not idempotent
|
 |
 |
|
|
subject: http head methods
|
|
|