Article View: borland.public.cppbuilder.internet.web
Article #1704Re: Range check error
From: Remy Lebeau (TeamB)
Date: Sun, 10 Oct 2004 20:24
Date: Sun, 10 Oct 2004 20:24
25 lines
1556 bytes
1556 bytes
"RS" <rs.reloaded@wanadoo.fr> wrote in message
news:416990f7$1@newsgroups.borland.com...
> Have you an exemple of a indy project with FTP Connection ?
The code is almost identical to what you are already using:
IdFTP1->Host = ""ftp-server";
IdFTP1->Port = 21;
IdFTP1->Username = "login";
IdFTP1->Password = "password";
IdFTP1->Connect(true, IdTimeoutDefault);
try
{
IdFTP1->TransferType = ftBinary;
IdFTP1->Get("file.exe", "c:\\temp\\file.exe", true, false);
ShowMessage("Download Complete");
}
__finally {
IdFTP1->Disconnect();
}
Gambit
Technical Details
Message-ID:
<41699a5d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41698024@newsgroups.borland.com> <416985d3$1@newsgroups.borland.com> <416990f7$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,6ec3ebc859553701 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <41698024@newsgroups.borland.com> <416985d3$1@newsgroups.borland.com> <416990f7$1@newsgroups.borland.com> Subject: Re: Range check error Date: Sun, 10 Oct 2004 13:24:06 -0700 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41699a5d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097439837 68.69.17.41 (10 Oct 2004 13:23:57 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail