Note that there are some explanatory texts on larger screens.

plurals
  1. POwrapper_data is empty?
    text
    copied!<p>I have a php script to retrieve headers using cURL, as described on <a href="https://stackoverflow.com/questions/6087222/php-get-headers-alternative">this</a> link. This works great on a localhost, but when I try to run the exact same script on another host, it will return a similar array, except for the array <code>wrapper_data</code> which is unfortunately the section I need (I'm trying to figure out if a url is an mp3 file).</p> <p>Local returns </p> <pre><code>Array ( [0] =&gt; ) Array ( [wrapper_data] =&gt; Array ( [0] =&gt; HTTP/1.1 200 OK [1] =&gt; Server: nginx [2] =&gt; Date: Thu, 14 Jul 2011 02:46:34 GMT [3] =&gt; Content-Type: audio/mpeg [4] =&gt; Connection: close [5] =&gt; Last-Modified: Thu, 22 Oct 2009 16:19:38 GMT [6] =&gt; Expires: Fri, 13 Jul 2012 02:46:34 GMT [7] =&gt; Content-Length: 5103556 [8] =&gt; X-hawt: very [9] =&gt; X-Orig-Src: 0_mogord [10] =&gt; X-nc: HIT ord 9 [11] =&gt; Accept-Ranges: bytes [12] =&gt; Cache-Control: max-age=31536000 ) [wrapper_type] =&gt; http [stream_type] =&gt; tcp_socket/ssl [mode] =&gt; r [unread_bytes] =&gt; 0 [seekable] =&gt; [uri] =&gt; http://takethesongsandrun.files.wordpress.com/2009/10/proud-graduates.mp3 [timed_out] =&gt; [blocked] =&gt; 1 [eof] =&gt; </code></pre> <p>but the host returns</p> <pre><code>Array ( [0] =&gt; ) Array ( [wrapper_data] =&gt; Array ( [headers] =&gt; Array ( ) [readbuf] =&gt; Resource id #14 ) [wrapper_type] =&gt; cURL [stream_type] =&gt; cURL [mode] =&gt; r [unread_bytes] =&gt; 0 [seekable] =&gt; [uri] =&gt; http://thedadada.files.wordpress.com/2011/06/06-pulling-on-a-line.mp3 [timed_out] =&gt; [blocked] =&gt; 1 [eof] =&gt; </code></pre> <p>I know cURL is not the problem, as it works in other places on my site. Is there something preventing this information from being retrieved properly?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload