🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2201

Re: IdFTP problem

#2201
From: Remy Lebeau (TeamB)
Date: Mon, 17 Jul 2006 03:37
29 lines
1845 bytes
"David Ayre" <davidcayre@ntlworld.com> wrote in message
news:44ba98f8$1@newsgroups.borland.com...

> I'll have at look at that. Can I download files in the
> same way as I do with ftp?

HTTP is a much more straight-forward protocol to work with than FTP.  There
are fewer calls involved, ie:

    TFileStream *fs = new TFileStream("c:\\my folder\\update.dat",
fmCreate);
    try
    {
        try
        {
            IfHTTP1->Get("http://www.mysite.com/update.dat", fs);
        }
        __finally {
            delete fs;
        }
    }
    catch(const Exception &)
    {
        DeleteFile("c:\\my folder\\update.dat");
    }


Gambit
Technical Details
Message-ID: <44bb061f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44b7b0d0$1@newsgroups.borland.com> <44b7c6f8$1@newsgroups.borland.com> <44b7ee96@newsgroups.borland.com> <44b7f43e$1@newsgroups.borland.com> <44b8a05a$1@newsgroups.borland.com> <44b8a74a@newsgroups.borland.com> <44b8acc2$1@newsgroups.borland.com> <44ba7c4c$3@newsgroups.borland.com> <44ba98f8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,117ad7250680adca
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <44b7b0d0$1@newsgroups.borland.com> <44b7c6f8$1@newsgroups.borland.com> <44b7ee96@newsgroups.borland.com> <44b7f43e$1@newsgroups.borland.com> <44b8a05a$1@newsgroups.borland.com> <44b8a74a@newsgroups.borland.com> <44b8acc2$1@newsgroups.borland.com> <44ba7c4c$3@newsgroups.borland.com> <44ba98f8$1@newsgroups.borland.com>
Subject: Re: IdFTP problem
Date: Sun, 16 Jul 2006 20:37:44 -0700
Lines: 31
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: <44bb061f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1153107487 68.69.17.41 (16 Jul 2006 20:38:07 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail