Answer by shingo for Unable to get Content Encoding using PHP cURL
Not sure how you found this constant CURLINFO_CONTENT_ENCODING. It doesn't appear in php documents or cURL documents. To get the response header, you need to register a callback function like...
View ArticleUnable to get Content Encoding using PHP cURL
I am using cURL with PHP to get content type and content encoding. I am successfully getting content type but content encoding value is empty.function get_content_type_curl($url_content_type) {...
View Article