cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl http downloads corrupt zip files

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Aug 2003 12:27:37 +0200 (CEST)

On Fri, 22 Aug 2003, Matthew Burgess wrote:

> I'm attempting to use the curl-7.10.7 win32-nossl binary to download some
> self extracting zip files from a website. The command line is roughly:
>
> curl -s -O -u username:password http://my.url.com/path/to/some.exe (with
> HTTP_PROXY set to enable access through the corporate firewall).
>
> Using "unzip -t" to verify the file is complete reports several errors which
> are unable to be fixed using "zip -F". This seems similar to what may
> happen with binary files transferred in Ascii mode over FTP, but I'm not
> aware of any similar issues over HTTP. Incidentally, downloading this file
> manually using IE on WinNT 4 SP6 downloads the file correctly.

I just now tried this operation on a Windows XP machine:

1. I downloaded and unpacked the curl-7.10.7 win32-nossl package using my
   browser
2. Then used the brand new curl executable to download the curl-7.10.7 source
   package zip archive from the curl web site.
3. I tried winzip'ing the newly downloaded zip archive. Worked just fine.

> Any pointers to any settings that may be affecting this file transfer would
> be greatly appreciated,

Can you please provide us with a better receipe on how to repeat this problem?

Can you figure out a publicly available zip archive that gets ruined when you
download it using this curl version?

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
Received on 2003-08-22