all groups > iis ftp > march 2008 >
You're in the

iis ftp

group:

FTP Resume WinINet


FTP Resume WinINet Cheval
3/10/2008 5:03:00 PM
iis ftp:
Hello,

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...?

Re: FTP Resume WinINet Bernard Cheah [MVP]
3/11/2008 5:03:03 PM
Try developer groups, IIS ftp support both upload append and download
resume.

--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Re: FTP Resume WinINet Alun Jones
3/17/2008 9:44:15 PM
[quoted text, click to view]

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.


AddThis Social Bookmark Button