the last build I was using, 2.5 stable 4 (compiled with cygwin current at that time) worked fine. yesterday I updated to 2.5 stable 9 (with latested cygwin), and it truncates file uploads when using ftp over http/1.1 connect. feels like a straight out bug to me.
File uploads using SSL, or some software abusing the CONNECT method for non-SSL connections?
this works (http upload and download via squid):
curl --upload-file c:\test.zip http://http.server.tld/ --proxy server:8080 --proxytunnel
curl --get http://http.server.tld/test.zip --output test2.zip --proxy server:8080 --proxytunnel
fc /b test.zip test2.zip
and so does this (ftp upload and download direct): curl --upload-file test.zip ftp://ftp.server.tld/ curl ftp://ftp.server.tld/test.zip --output test2.zip fc /b test.zip test2.zip
this doesn't (ftp upload and download via squid):
curl --upload-file test.zip ftp://ftp.server.tld/ --proxy server:8080 --proxytunnel
curl ftp://ftp.server.tld/test.zip --output test2.zip --proxy server:8080 --proxytunnel
fc /b test.zip test2.zip
Note: same with all tested clients (curl and smartftp) and servers (iis6 & Pure-FTPd on some *nix)
Louis Solomon www.SteelBytes.com