4.3 HTTP OPTIONS Command Request and Response

The following example illustrates the use of the HTTP OPTIONS command. The MS-ASProtocolVersions header in the server response shows that versions 1.0, 2.0, 2.1, 2.5, 12.0, 12.1, and 14.0 of the protocol are supported on the server. The MS-ASProtocolCommands header in the server response lists the commands that are supported. It is recommended that protocol clients not trigger on the build number of the protocol server, which can change because of server updates. The build number shown in the examples might differ from those seen in a development or production environment.


 OPTIONS /Microsoft-Server-ActiveSync HTTP/1.1
 Host: Contoso.com


 HTTP/1.1 200 OK
 Cache-Control: private
 Server: Microsoft-IIS/7.0
 MS-Server-ActiveSync: 14.00.0536.000
 MS-ASProtocolVersions: 2.0,2.1,2.5,12.0,12.1,14.0
 MS-ASProtocolCommands: Sync,SendMail,SmartForward,SmartReply,GetAttachment,GetHierarchy,
 X-AspNet-Version: 2.0.50727
 X-Powered-By: ASP.NET
 Date: Thu, 12 Mar 2009 20:03:29 GMT
 Content-Length: 0