![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: curl extension downloads 1 byte only from zip files
From: benji <benpjohnson@gmail.com>
Date: Wed Jul 13 2005 - 02:05:30 CEST
Thanks for the feedback it has helped my understanding of the problem.
Here is a cut down version of the code I am using. Sorry about omitting
I have also posted the responce headers below. I think that the
-Ben
$ch = curl_init('url');
$fp = fopen("downloaded.zip", "w");
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
$downloaded = curl_exec($ch);
curl_close($ch);
fclose($fp);
HTTP/1.1 200 OK
[plaintext awcsv.zip]
|