Added support for sending HEAD request

I added the possibility to send HEAD request to the qRestAPI.