Use Curl for head request