I’ve released a new version of htbaapub.rest which contains a fix that normally makes libcurl generate an error.
When doing a HEAD request the server is supposed to return the same headers as when a GET request is being done. This also includes the Content-Length header. cURL however complains that the reported Content-Length couldn’t be read and generates a CURLE_PARTIAL_FILE (18) error.
Htbaapub.rest would simply throw an exception when cURL generated an error. Now this specific case is being ignored. So all HEAD requests which generate the CURLE_PARTIAL_FILE (18) error will succeed, as it’s supposed to.