Don't get the body for HEAD requests

There is no need for the body in case of HEAD request ad also, curl will change the request method to the server to HEAD.