Fixed incorrect parsing of cURL responses