Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Feb : Downloading file?

www.cryer.info
Managed Newsgroup Archive

Downloading file?

Subject:Downloading file?
Posted by:"eXibit" (kennet..@hotmail.com)
Date:Wed, 16 Feb 2005 02:16:34

Hi im using this code to download a file with Indy.

FStream := TFIleStream.Create('file.txt', fmCreate);
  try
    idhttp1.Get(Path, FStream);
  finally
    FStream.Free;
  end;


1. I downloade the file. Downloade is conplete!
2. I remove the file from the internet server.
3. I close the Program that i used the "code" in. Then i get HTTP/1.1 File
not found or somthing like that.

It sems that the program knows that the file is not available after it have
been downloaded, and then gives an error even if the file is downloaded.

How do i fix this? I don't want that error.


Thx

Replies:

www.cryer.info
Managed Newsgroup Archive