Saturday, 15 December 2012

Skydrive WebDAV Access - Updated

Somehow there is very little information about WebDAV access to Skydrive, which is upsetting, because with 7GB (or 25GB, if you're lucky) of storage it becomes a very nice place to store your files.

Now, Microsoft officially claims Skydrive does not support WebDAV at all, which is sort of funny when you consider that it is exactly what the new Office 2013 uses to allow you to save your files there. Basically, when you save a document to Skydrive from one of the Office apps, it mounts your Skydrive account to a folder, saves a document there and then dismounts it.

Doing this yourself is very simple, and while some older tools (like Skydrive Simple Viewer or Skydrive plugin for Total Commander) don't seem to work, Office is going to help us.

First, connect enter your Skydrive account details in Office 2013 to enable all related capabilities.

Second, open any document, click Save As, select your Skydrive and click Browse. The following window should come up, showing the contents of your Skydrive.



All you need to do now is to click on the address bar and copy all its contents - this is the WebDAV address of your Skydrive account.

Now you can use this address in any WebDAV enabled application in any operating system. The simplest way to see if it works is to map a network disk in Windows. Use your Microsoft account email as username and your password when prompted.

Overall, WebDAV access might be a bit slow at times, but I find having direct access to my files very convenient for certain applications where Dropbox-like syncing might be an overkill.


UPDATE: Having to use Microsoft Office just to get your WebDAV address is highly inconvenient - for Linux users it means they have to have access to a Windows box. Fortunately, as I have just found out, there is a very simple way to get your Skydrive WebDAV address from any OS.

Just log in to your Skydrive web interface at skydrive.com, click your name in the top right corner and select "Edit Profile". When the page opens you should have a similar address in your address bar:

https://profile.live.com/P.mvc#!/cid-5190000000013e3c/




Now take the part after "cid-" (in this case "5190000000013e3c") and add it to the following address: "https://d.docs.live.net/". In our example it becomes:

https://d.docs.live.net/5190000000013e3c

And voila - here is your Skydrive WebDAV address. Again, you can try it out by mapping it as a network drive in Windows Explorer.


UPDATE2: Unfortunately, while the above solution works well in Windows and allows you to access your Skydrive via a mapped network drive, it doesn't seem to be possible to do the same in Linux.

Despite many efforts to mount Skydrive with davfs2 in Linux, I kept getting the "Found 302" error, meaning that the provided WebDAV URL redirects to another page. It turns out, davfs2 currently is unable to handle any redirects, which Skydrive (unlike many other WebDAV storage providers) uses. There is a related davfs2 bug that was filed over 2 years ago, yet it seems no progress has been made since.

Effectively, until this is fixed, there seems to be no way to access Skydrive via WebDAV in Linux.


UPDATE3: To be completely fair, it turns out it is possible to access specific folders of your Skydrive via WebDAV but only when using KDE's Dolphin file manager. This is made possible thanks to the fact that Dolphin uses Konqueror's (Rekonq's) cookies to establish a session, thus if you have previously logged to skydrive.com with Rekonq, it will use the same session and allow you to see your files.

To do that you have to log in to the Skydrive web-interface with Rekonq, open a folder you want to work with and note it's number in the browser's address bar. The number will be the digits after the "!" in the address. Now, insert the following addres in Dolphin's address bar and you should instantly see your folder and work with it normally:

webdavs://cid-5190000000013e3c.users.storage.live.com/items/5190000000013e3c!12345/

In this example "5190000000013e3c" is your ID we've found in the steps above and "12345" is the folder number.

Unfortunately, this only works in Dolphin and you can only work with one folder at a time.

10 comments:

  1. Wow. I've just tested it and IT WORKS!!! Thank you very much and cheers from Spain.

    ReplyDelete
  2. Hi, if you change the .net to .com, then you can get rid of the 302 error. however a secondary error appears where it says the server is unreachable. why is this

    ReplyDelete
    Replies
    1. Hi, thanks for the response.

      I guess the reason is that live.com is a different web site than live.net.

      Basically, there is no Skydrive access at live.com, that's why you don't get the 302 error (which means that Skydrive is there, but can't be accessed), but rather an error saying there is no WebDAV interface at that address at all.

      Delete
  3. Thanks for your investigation. Yes, I am also having 302 error on Linux. There's no webdav client that supports redirection?

    ReplyDelete
    Replies
    1. Hi Nanni, thanks for the comment.
      No, I'm afraid there are no WebDAV clients for Linux that support redirection at the moment, at least not to my knowledge.

      Delete
  4. Works fine on windows XP. Thanks for the tip. For those who might be interested, you can map a webDAV folder to a drive letter even with https, using the stunnel SSL encryption wrapper. Detailed instructions are provided here. A nice alternative is to use carotDAV, a program based on the .NET framework with built-in support for google drive,skydrive and box plus webdav support.

    ReplyDelete
  5. Simply amazing! I came here looking for a way to replace the deprecated functionality with publishing calendars to Office.com. Outlook still supports WebDAV and I was able to successfully publish my calendar (and secure it with my LiveID) the exact same way it did before. Thank you!

    Also, I am currently looking for a "simple" way to share the calendar (i.e. document) from SkyDrive using the public view links. I traced the redirect using Chrome Developer Tools and was able to import the ICS calendar without credentials. So far I have been successful in both WebDav publishing and public downloading of the calendar.

    Thanks again!

    ReplyDelete
    Replies
    1. Thanks for your comment, I'm glad to see this old post can still be helpful.

      Delete
  6. Still helpful :)
    Just used it to mount OneDrive folders through Dolphin on KDE.
    Works great.
    Thanks,
    Carlos

    ReplyDelete