iCloud in OS X Implementation - which protocol does it use? In Mountain Lion, iCloud is "integrated" in every program. So when i open or save a document i have an iCloud option available.


  But where are the documents? Are they local and get syned every now
  and then, or is it WebDAV or just http?


The documents load very fast, and there seems to be no delay.
iCloud documents are cached locally in ~/Library/Mobile Documents (~ represents your home folder).

They're synchronized via HTTPS (even when the application is closed) and the files (some of them, at least), are stored on Amazon S3.

When opening, editing and saving a TextEdit document from iCloud, these requests are made :


POST request to https://p**-ubiquity.icloud.com/ub/*********/rwsync/********…
POST request to https://p**-content.icloud.com/*********/authorizePut
PUT request to Amazon S3
POST request to https://p**-content.icloud.com/*********/putComplete
POST request to https://p**-ubiquity.icloud.com/ub/*********/rwsync/********…
POST request to https://p**-ubiquity.icloud.com/ub/*********/rosync/********…