Article View: borland.public.cppbuilder.internet.web
Article #1722Re: reading file name?
From: hans galema
Date: Wed, 20 Oct 2004 17:18
Date: Wed, 20 Oct 2004 17:18
40 lines
2426 bytes
2426 bytes
Artaud wrote: > Yes it is a web site Ok. So on computer connected to the internet runs a server program. In this case a webserver. Webservers speak http. SO you need a http component. You can use Indy TIdHttp for it but also TCppWebBrowser. > in which is a directory with a specified file and I > would than my application goes to read the name of the file That is never possile. You have to know the name of the file before. > and compare it > with one in its hard disk and if it is ok the application download the file. Browsers can get that info. So I think it is possible. But I never tried to do that. > That is what I would to do, but I don't know what to use. If you would use ftp then these things are easier. But than there should run an ftp server to. Most ftp servers on websites do not use anonimous login. > At the first time I would read this filename on the website, What is that ? Reading a filename ? See if the file exists ? > but I don't > know what to use to be transparent for the user A way like if I type the url > in a browser like > http://mywebsite/mydirectory/myfile.exe > and if the filename is ok I start the download like "save" in a browser. > It is only the FTP component able to do it? because I must put the name and > pwd of my website!! For ftp yes, you should know user,pass. But not with http. Hans.
Technical Details
Message-ID:
<41769db0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!in.nntp.be!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41762960$1@newsgroups.borland.com> <4176607b$1@newsgroups.borland.com> <4176682c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,a6a0c766366f2ac9 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 20 Oct 2004 19:18:04 +0200 From: hans galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.web Subject: Re: reading file name? References: <41762960$1@newsgroups.borland.com> <4176607b$1@newsgroups.borland.com> <4176682c@newsgroups.borland.com> In-Reply-To: <4176682c@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <41769db0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1098292656 129.125.201.248 (20 Oct 2004 10:17:36 -0700) Lines: 43 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!in.nntp.be!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail