cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: libcurl and Microsoft IIS FTP server

From: Rob Lievaart <Rob.Lievaart_at_thomson.net>
Date: Tue, 30 Oct 2007 12:29:27 +0100

Hi,
 
> > I'm new to this list and have tried searching the archives for my
issue but
> > without success. I am debugging an app (that I didn't write) that
uses
> > libcurl for FTP support. When copying against a Windows 2000 Server
running
> > the latest service packs (sp4) and using the MS IIS FTP server I am
getting
> > some weird behavior. I can't find anything to tell me there is a
problem
> > with the MS FTP server or that it behaves differently than other FTP
server
> > implementations.

Are the files perhaps larger then 2 Gigabyte? I have seen similar
behavior
with an older libcurl versions and the MS-FTP server. The application
passed a 64 bit filesize to CURLOPT_INFILESIZE (Which should be 32
bits). All
seems well but when curl checks the filesize at the end of the transfer,
it finds
an error and closes the connection. The closing of the command
connection
reaches the server before the last packets of the actual file transfer.
When the
command connection closes MS-FTP cleans up the file.

My $0.02,

Rob Lievaart
Received on 2007-10-30