|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to get all files from http serverHello,
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" <ga***@163.net> wrote in news:uBpDLUGjGHA.3572@TK2MSFTNGP04.phx.gbl: Unfortunately if the server does not allow file browsing... you can't get a > 1. how to enumerate all the file from a folder on http server? list of all the files. 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. > "yxq" <ga***@163.net> wrote in You'll need to parse the HTML - I don't think HTML has a list folder news:u1WyhPRjGHA.4304@TK2MSFTNGP03.phx.gbl: > If the server allow to browse, how to get the file list and file info? > Thank you command. yxq wrote:
> If the server allow to browse, how to get the file list and file info? Screen scraping. Request the folder, parse out the filenames and> 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. 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.
Report viewer Page margins problem
ASCII Character code for the 6th power Is there a built in command to encode SQL strings? Lost my Design view for a Windows Form (VB 2005) two-dimensional arrays Where is Page.RegisterClientScriptBlock Available? Last Modified date for the Source code. Launch new instance of IE?? GraphicsPath.IsVisible broken? elapsed between 2 dates |
|||||||||||||||||||||||