4.3 Download Scenario
The following diagram demonstrates the steps taken to download the data between client and server.

Figure 3: Download scenario
The client sends a HTTP PUT request on Create Session resource to start a sync session on the server.
The server creates a new session and responds with session information.
The client sends a HTTP PUT request on the Sync Batch Parameters resource, to upload its sync knowledge which will be used by the server to generate the list of changes to be downloaded".
The server responds with TotalFileCount and TotalFileSize.
The client sends a HTTP GET request on the Download Batch resource, to obtain metadata information for all files in a change batch.
The server responds with BatchMetadata and DownloadInfo.
The client sends a HTTP PUT request on the Download Data resource the DownloadEntryVector in the request body is set to a VECTOR_DOWNLOAD_ENTRY.
For each file represented by a DOWNLOAD_ENTRY structure in DownloadEntryVector, the server constructs the DOWNLOAD_RESPONSE_ENTRY and adds it to VECTOR_DOWNLOAD_RESPONSE_ENTRY.
The client sends a HTTP DELETE request on Delete Session resource, to remove a server session after a synchronization process is completed or aborted.
The server deletes the session.