4.2 FolderSync Request and Redirect Response
The following is the same request from the example described in section 4.1. In this example, configuration changes on the server have caused the "contoso.com" host to no longer be the optimal host for the user.
Request
-
POST /Microsoft-Server-ActiveSync?Cmd=FolderSync&User=fakename&DeviceId=v140Device&DeviceType=SmartPhone HTTP/1.1 Content-Type: application/vnd.ms-sync.wbxml MS-ASProtocolVersion: 14.0 User-Agent: ASOM Host: Contoso.com <?xml version="1.0" encoding="utf-8"?> <FolderSync xmlns="FolderHierarchy:"> <SyncKey>2</SyncKey> </FolderSync>
The server redirects the client to the "mail.contoso.com" host using an HTTP status code 451 and the X-MS-Location header.
-
HTTP/1.1 451 Date: Thu, 12 Mar 2009 20:16:22 GMT X-MS-Location: https://mail.contoso.com/Microsoft-Server-ActiveSync Content-Length: 0