ZF-7488: Zend_Http_Client_Adapter_Curl: how to get a file without header
Description
How can I get a file with Zend_Http_Client_Adapter_Curl like I do with this code:
$ch = curl_init(); curl_setopt($ch, CURLOPT_FILE, $output_path); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_URL, $url_to_file); curl_exec($ch); curl_close($ch);
Thank you in advance
Comments
Posted by Shahar Evron (shahar) on 2009-08-05T06:25:42.000+0000
Hi,
Are you reporting a bug or asking a question? If this is not a bug, but a usage question, please use the IRC channel (#zftalk @ FreeNode) or mailing lists (See http://framework.zend.com/wiki/display/… for details) to get help.
If this is a bug report, please attach a snippet of code demonstrating the problem, and explain what you expect to get and what you get instead.
Thanks,
Posted by Shahar Evron (shahar) on 2009-08-05T06:27:25.000+0000
BTW take a look at http://framework.zend.com/manual/en/… - esp. at how you can pass CURL-specific options to the adapter.
Shahar.
Posted by Stefan Scherzer (hellfish13) on 2009-08-05T06:41:55.000+0000
Thank you for your answer.
This is just a question. I will post my question to the mailing lists.
Posted by Shahar Evron (shahar) on 2009-08-05T06:55:22.000+0000
Ok, I'll close this bug. BTW you should look at the link above before posting to the list- it might be what you're looking for.