How to Retrieve files from IIS webserver ??
| Thu, 2007-03-15 06:19 | |
|
Hi,
I am developing a appln in which i shld list the files into my mobile appln which are stored in IIS webserver .....i used a basic socket for establishing connection....can u give me some idea how to list those files and make a search option to search the files and then proceed downloading.... Regards, Sundar.G |
|






Forum posts: 708
Are you trying to use WebDAV? In that case you also need to write or find an XML parser to use.
And how you should go about things in detail depends also quite a bit on which phone you're developing for and what programming languafe (C++, Java, or whatever).
Forum posts: 1156
I think this will get difficult, because as far as I know HTTP has no "list files in directory" command per se. If there is no index.html file in a directory, you might get a list of the files in it by using just the directory name as URL, ending with a slash "/", but a) listing the contents of directories in this way might be forbidden, by way of server configuration, and b) the exact format of the file list seems to be webserver- and webserver-version-dependant, so you might have to use some heavy HTML parsing...
Of course, if the server is under your control, you can configure it and some directories on it exactly the way you like it and need it for your program, and you can write your program to work with the particular file list format that this server will return.
René Brunner