Support a HEAD HTTP request.

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