[quoted text, click to view] "Cheval" <Cheval@discussions.microsoft.com> wrote in message
news:EEB3F878-749C-4D9A-9002-C46963DB9BA4@microsoft.com...
> Firstly, I've checked the FTP server it it supports FTP resuming and the
> REST RETR commands.
>
> I'm not sure if this is the right place to post this, but I can't seem to
> get WinINet to resume a FTP transfer. I've tried the FtpCommand using
> "REST"
> and "RETR", but when the InternetReadFile gets data, it's always at the
> beginning of the file again...?
>
> Can anyone either point me in the right direction or offer an answer.
The problem is with WinINet, not with IIS.
The REST command only lasts until the _next_command_.
WinINet allows you to send a command before you ask it to open the file for
retrieval, right? And that's where you send the REST.
But the WinINet command sequence opening the file for retrieval calls two
commands, the second of which is the RETR. The first command is either PORT
or PASV, to set up a data connection for the transfer.
You have to fit your REST command in between the PORT/PASV command, and the
RETR, in order to have any effect whatever.
You can't do this (last time I checked, anyway) with WinINet - you will have
to find, or write, your own FTP component that can.
Alun.
~~~~
--
Texas Imperial Software | Web:
http://www.wftpd.com/ 23921 57th Ave SE | Blog:
http://msmvps.com/alunj/ Woodinville WA 98072-8661 | WFTPD, WFTPD Pro are Windows FTP servers.
Fax/Voice +1(425)807-1787 | Try our NEW client software, WFTPD Explorer.