How to Retrieve files from IIS webserver ??

Login to reply to this topic.
Thu, 2007-03-15 06:19
Joined: 2005-08-01
Forum posts: 25
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

Thu, 2007-03-15 08:22
Forum Nokia Champion
Joined: 2003-06-10
Forum posts: 708
Re: How to Retrieve files from IIS webserver ??
Since you are talking to an HTTP server, instead of using a socket-level interface where you have to create and parse HTTP messages, why don't you use the HTTP API calls?

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).
Thu, 2007-03-15 08:25
Joined: 2005-11-20
Forum posts: 1156
Re: How to Retrieve files from IIS webserver ??
This is less a Symbian question, but more a HTTP question, because your program will "talk" HTTP to the IIS.

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

  • Login to reply to this topic.