Re: FTP Resume WinINet



"Cheval" <Cheval@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:EEB3F878-749C-4D9A-9002-C46963DB9BA4@xxxxxxxxxxxxxxxx
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.



.



Relevant Pages

  • Re: TCP_NODELAY
    ... On the client side, the time to produce a line is irrelevant since the TCP ... output from the previous command. ... Texas Imperial Software | Web: http://www.wftpd.com/ ... Woodinville WA 98072-8661 | WFTPD, WFTPD Pro are Windows FTP servers. ...
    (microsoft.public.win32.programmer.networks)
  • Re: newbee help....
    ... >I am trying to compile from the VS command line that the book says it is in ... I'm just trying to compile a hello world example. ... Texas Imperial Software | Find us at http://www.wftpd.com or email ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
    (microsoft.public.dotnet.csharp.general)
  • Re: TCP_NODELAY
    ... The problem is that because the user expects a half-duplex connection (ie type a command, press enter, wait for output), and they can type SHORT commands, there is an avoidable lag between the enter key-press and the data transmission that is always wasted time. ... Texas Imperial Software | Web: http://www.wftpd.com/ ... Woodinville WA 98072-8661 | WFTPD, WFTPD Pro are Windows FTP servers. ...
    (microsoft.public.win32.programmer.networks)
  • Re: IIS Configuartion for "Put" Command
    ... > Files to the Internet Information Server" to upload files using WinInet ... > the Put command. ... The directory I am pointing to is configured in the IIS ...
    (microsoft.public.inetserver.iis)
  • Re: FTP.EXE - how to select a port?
    ... Whenever I issue a command like LS ... the command is preceded by a PORT command. ... Texas Imperial Software | Find us at http://www.wftpd.com or email ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
    (microsoft.public.inetserver.iis.ftp)

Loading