🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
5 messages
5 total messages Started by Artaud Wed, 20 Oct 2004 09:01
reading file name?
#1719
Author: Artaud
Date: Wed, 20 Oct 2004 09:01
10 lines
1373 bytes
Hello,
I am new usint internet components.
I would my application reads a filename in a directory of a site and compare 
it with another in the hard disk.To know if it is a "new version"
I don't know what component to use to read the filename
and to donload it if it is ok.
I have looked at the borland examples, but there is many things and don't 
know what I must use.
I thank you in advance for help!
Patrick 
Re: reading file name?
#1720
Author: hans galema
Date: Wed, 20 Oct 2004 11:57
21 lines
1638 bytes
Artaud wrote:

> I would my application reads a filename in a directory of a site and compare 
> it with another in the hard disk.To know if it is a "new version"

What do you mean with a site ? A website ? Where you use a browser for ?

> I don't know what component to use to read the filename
> and to donload it if it is ok.

We cannot advise until you explain further. There are so many
ways to connect with server programs on a computer.

> I have looked at the borland examples, but there is many things and don't 
> know what I must use.

You have to decide what you want.

FPT ?

Hans.
Re: reading file name?
#1721
Author: Artaud
Date: Wed, 20 Oct 2004 13:29
38 lines
2765 bytes
Thank you for your help,
Yes it is a web site in which is a directory with a specified file and I 
would than my application goes to read the name of the file and compare it 
with one in its hard disk and if it is ok the application download the file. 
That is what I would to do, but I don't know what to use.
At the first time I would read this filename on the website, 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!!
There is not another way?
I thank you again, and excuse my English
Patrick
"hans galema" <notused@notused.nl> a �crit dans le message de news: 
4176607b$1@newsgroups.borland.com...
> Artaud wrote:
>
>> I would my application reads a filename in a directory of a site and 
>> compare it with another in the hard disk.To know if it is a "new version"
>
> What do you mean with a site ? A website ? Where you use a browser for ?
>
>> I don't know what component to use to read the filename
>> and to donload it if it is ok.
>
> We cannot advise until you explain further. There are so many
> ways to connect with server programs on a computer.
>
>> I have looked at the borland examples, but there is many things and don't 
>> know what I must use.
>
> You have to decide what you want.
>
> FPT ?
>
> Hans. 
Re: reading file name?
#1722
Author: hans galema
Date: Wed, 20 Oct 2004 17:18
40 lines
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.
Re: reading file name?
#1724
Author: 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.
>
>
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads