CURLOPT_NOBODY option usage

When doing multiple requests one after another if the first one was HEAD, CURLOPT_NOBODY option will not be reset back to false for the following requests forcing them to ignore request body. This leads to "failed to derive xcontent" error from ElasticSearch.