How to get all files from http server

  • Thread starter Thread starter yxq
  • Start date Start date
Y

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
 
yxq said:
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.
 
yxq said:
If the server allow to browse, how to get the file list and file info?
Thank you

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.
 
Back
Top