HF RL Explorer

Task: Uncompress Gzip Content from CURL Response in PHP

Task: Uncompress Gzip Content from CURL Response in PHP: a task in Terminal-Lego-15k (Harbor dataset). When fetching content from a URL using CURL in PHP, the server may return gzip-compressed content (indicated by Content-Encoding: gzip header). Your task is to create a PHP script that properly…

The task

When fetching content from a URL using CURL in PHP, the server may return gzip-compressed content (indicated by `Content-Encoding: gzip` header). Your task is to create a PHP script that properly handles and decompresses gzip-encoded responses received via CURL.

Part of PrimeIntellect/Terminal-Lego-15k.