Is there anyway to support HEAD method in a Rest step on DevTest 8.0.1 or 9.1.0
The HEAD method is identical to GET except that the server MUST NOT return a message-body in theresponse. The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request. This method can be used for obtaining metainformation about the entity implied by the request without transferring the entity-body itself. This method is often used for testing hypertext links for validity, accessibility, and recent modification.
Agreed that they are almost identical... but we have reasons why we would like support for it.
1) The server has to support the GET method to use it in place of HEAD. For performance reasons, ours do not support GET as we don't want to unnecessarily return a large body of information when all we need is the headers.
2) We use the HEAD method for fast server to server validations.. so we need to use the designed method to appropriately test the functionality. We will test that a valid HEAD request gets a 200 status and all other methods return a 405 status as below.
<h1>HTTP Status 405 - Request method 'GET' not supported