Support a HEAD HTTP request.

I've implemented a new feature that CurlAgent cant request a HTTP Head request.