Maybe someone will have the interest and time to return the headers for debugin purpose in the method httpRequest()
By now I comment it out to avoid errors because the variable $http_response_header does not exist.

As well, I set CURLOPT_USERAGENT to 'opauth' instead to use CURLOPT_HTTPHEADER and set the $options array only if file_get_contents will be used.