Added missing return statements to curl HTTP client