Added support for sending HEAD request