I\'m trying to get the response & the response headers from CURL using PHP, specifically for Content-Disposition: attachment; so I can return the filename passed within
Using the array() form for method callbacks should make the original example work:
array()
curl_setopt($this->_ch, CURLOPT_HEADERFUNCTION, array($this, 'readHeader'));