find out if url is compressed
<p>I just have a question thats been pozzling my head all morning.</p>

<p>I want to get all http headers thru CURL ... and find out, if pinged url is compressed, or not. (either one of: gzip / x-gzip / deflate / compress) </p>

<p>But all I can get from CURL is this:</p>

<pre><code>[url] =&gt; http://www.url
[content_type] =&gt; text/html; charset=UTF-8
[http_code] =&gt; 302
[header_size] =&gt; 764
[request_size] =&gt; 54
[filetime] =&gt; -1
[ssl_verify_result] =&gt; 0
[redirect_count] =&gt; 0
[total_time] =&gt; 0.042535
[namelookup_time] =&gt; 0.002779
[connect_time] =&gt; 0.014986
[pretransfer_time] =&gt; 0.015039
[size_upload] =&gt; 0
[size_download] =&gt; 0
[speed_download] =&gt; 0
[speed_upload] =&gt; 0
[download_content_length] =&gt; 218
[upload_content_length] =&gt; 0
[starttransfer_time] =&gt; 0.042204
[redirect_time] =&gt; 0`
</code></pre>

<p>Nothnig like "Content-encoding" ... any chance to get that thru PHP?</p>
