Home All Groups Group Topic Archive Search About

How to get all files from http server

Author
10 Jun 2006 8:08 AM
yxq
Hello,
I want to make an updater, need to get all files info from the http server(a
folder), then compare the client files singly,
if the date or file size of server file is different with the client file,
then download the file to client.

1. how to enumerate all the file from a folder on http server?
2. how to get the file info(i.e. file size, date and version) on server?


Thank you very much

Author
10 Jun 2006 5:47 PM
Spam Catcher
"yxq" <ga***@163.net> wrote in news:uBpDLUGjGHA.3572@TK2MSFTNGP04.phx.gbl:

> 1. how to enumerate all the file from a folder on http server?

Unfortunately if the server does not allow file browsing... you can't get a
list of all the files.
Author
11 Jun 2006 4:59 AM
yxq
If the server allow to browse, how to get the file list and file info?
Thank you

Show quoteHide quote
"Spam Catcher" <spamhoneypot@rogers.com> дÈëÏûÏ¢ÐÂÎÅ:Xns97DE8C529FC08usenethoneypotrogers@127.0.0.1...
> "yxq" <ga***@163.net> wrote in news:uBpDLUGjGHA.3572@TK2MSFTNGP04.phx.gbl:
>
>> 1. how to enumerate all the file from a folder on http server?
>
> Unfortunately if the server does not allow file browsing... you can't get
> a
> list of all the files.
>
Author
22 Jun 2006 8:38 PM
Spam Catcher
"yxq" <ga***@163.net> wrote in
news:u1WyhPRjGHA.4304@TK2MSFTNGP03.phx.gbl:

> If the server allow to browse, how to get the file list and file info?
> Thank you

You'll need to parse the HTML - I don't think HTML has a list folder
command.
Author
22 Jun 2006 11:20 PM
Travers Naran
yxq wrote:
> If the server allow to browse, how to get the file list and file info?
> Thank you
>
> "Spam Catcher" <spamhoneypot@rogers.com> дÈëÏûÏ¢ÐÂÎÅ:Xns97DE8C529FC08usenethoneypotrogers@127.0.0.1...
> > "yxq" <ga***@163.net> wrote in news:uBpDLUGjGHA.3572@TK2MSFTNGP04.phx.gbl:
> >
> >> 1. how to enumerate all the file from a folder on http server?
> >
> > Unfortunately if the server does not allow file browsing... you can't get
> > a
> > list of all the files.

Screen scraping.  Request the folder, parse out the filenames and
links, then fetch then.  There are no other ways of getting a list
unless the server specifically implements them.  If you can, use FTP
instead.