| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
curl with php 4.3.1 http downloads corrupts zip file
From: - - <unicode72_at_hotmail.com>
Date: Thu, 01 Mar 2007 16:34:39 +0100
Hi,
I am downloading a zip file located at a URL. See below code:
$ch = curl_init();
$fp = fopen("test.zip", "w");
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
//set error in case http return code bigger than 300
// allow redirects
//hack to make code work on windows
//pretend to be IE6 on windows
// set url to post to
//set method to get
curl_exec($ch);
Now this works it saves the zip file located at
If I download the zip file with my browser it is 56,8 KB (58.177 bytes) and
If I download it with cURL in php then the zip file is 57,0 KB (58.414
I use curl that comes with php 4.3.1.
Anybody got any ideas how to fix this?
_________________________________________________________________
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info