Service Virtualization

Expand all | Collapse all

Rest step using HEAD method

  • 1.  Rest step using HEAD method

    Posted 05-13-2016 01:57 PM

    Is there anyway to support HEAD method in a Rest step on DevTest 8.0.1 or 9.1.0

  • 2.  Re: Rest step using HEAD method

    Posted 06-09-2016 04:02 PM


    The HEAD method is identical to GET except that the server MUST NOT return a message-body in the
    response. 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.

  • 3.  Re: Rest step using HEAD method

    Posted 06-09-2016 04:49 PM

    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