locked
How to use webdav for Windows Store App - Any client or Library which i can use in Visual Studio 2012?

    Question

  • Hey folks,

    currently i am developing a small Windows Store App which should access to server and catch all needed Data with webdav.

    I want to get a Listing of the File hierarchy with webdav.

    Is there any client you can recommend which is also free to use? Or any library included in Visual Studio?

    I havent found anything to use in Windows Store Apps, also never ever worked with webdav.

    My aim is, to mirror the accessed webPage for Offline usage.

    Thanks for help and recommendations.

    Wednesday, October 23, 2013 10:45 AM

Answers

  • You're going to want to read more about the WebDAV protocol itself.  There are specific commands which you use to get information from the server, much like FTP.  Wikipedia has some good information on the commands used: http://en.wikipedia.org/wiki/Webdav

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, October 23, 2013 2:32 PM
    Moderator

All replies

  • WebDAV is just an HTTP implementation of a file server.  You can use the Windows.Web.Http.HttpClient class to GET and PUT files.  I don't know of any Store libraries that makes this really simple.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.


    Wednesday, October 23, 2013 12:27 PM
    Moderator
  • Thanks for your answer.

    And how can i get the file structure from the server? i have no idea to solve this with HttpClient.

    Wednesday, October 23, 2013 2:11 PM
  • You're going to want to read more about the WebDAV protocol itself.  There are specific commands which you use to get information from the server, much like FTP.  Wikipedia has some good information on the commands used: http://en.wikipedia.org/wiki/Webdav

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, October 23, 2013 2:32 PM
    Moderator