Pak Jiddat - Innovative Software Services

Read: In the name of thy Lord Who createth, Createth man from a clot. Read: And thy Lord is the Most Bounteous, Who teacheth by the pen, Teacheth man that which he knew not. Nay, but verily man is rebellious That he thinketh himself independent!. Lo! unto thy Lord is the return. (Sura Alalaq 96:8)

Fetching Gzip content with Php Curl

Created On: 13 Sep, 2018: 14:52:19 - Tags : php

Url: https://stackoverflow.com/questions/310650/decode-gzipped-web-page-retrieved-via-curl-in-php

To fetch urls such as RSS Feeds that have been compressed with gzip encoding the following curl option can be used:

curl_setopt($ch,CURLOPT_ENCODING , "gzip");

Related Articles

  1. Preventing browsers from caching content
  2. Installing latest version of Php
  3. Displaying contents of an array in NXM html table
  4. Generate Url query strings using http_build_query
  5. Executing Php code using eval
  6. Fixing timeout problems with Php scripts on Plesk
  7. Php 7 error handling
  8. Check if session has been started in Php
  9. Installing memcached for Php 7
  10. What is the difference between a PHP interpreter and a PHP handler?
  11. Used to execute shell commands
  12. Getting http request method in php
  13. Set Cookie using Php
  14. Using array_rand and shuffle functions
  15. Using Usort function for sorting Arrays
  16. Php function isset returns false for null values