πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1724

Re: reading file name?

#1724
From: patrick_artaud
Date: Thu, 21 Oct 2004 19:15
58 lines
3045 bytes
I thank you again,
I see I have two  possibilities one with Thttp but I must know the name of 
the file,And is it possible to obtain the file creation date without 
downloading it,in the case I know its name?

or with TFTP and here I must ask if I can put a special password for the 
specified directory where users could download (because I don't want they 
can modify my web site).
For the instance I have done it with TFTP but the password is a problem!
I thank you again
Patrick.

"hans galema" <notused@notused.nl> a οΏ½crit dans le message de news: 
41769db0@newsgroups.borland.com...
> 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: <4176b715@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41762960$1@newsgroups.borland.com> <4176607b$1@newsgroups.borland.com> <4176682c@newsgroups.borland.com> <41769db0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,a6a0c766366f2ac9
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII
From: "patrick_artaud" <patrick_artaud@aidealadecision.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <41762960$1@newsgroups.borland.com> <4176607b$1@newsgroups.borland.com> <4176682c@newsgroups.borland.com> <41769db0@newsgroups.borland.com>
Subject: Re: reading file name?
Date: Thu, 21 Oct 2004 21:15:52 +0200
Lines: 60
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 82.228.58.174
Message-ID: <4176b715@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1098299157 82.228.58.174 (20 Oct 2004 12:05:57 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail