Request Line

The request line consists of the method indicator, POST, followed by the URI, followed by the HTTP version, as follows.


The URI can be either an absolute URI or a relative URI, as specified in [RFC2616] section 3.2.1. The absolute URI consists of a scheme indicator, the host name, and the path, followed by a query value. The relative URI consists of the path and the query value.

The path and query value in the URI have the following format.

 /<ActiveSync virtual directory name>?<query value>

The query value in the URI contains all of the URI parameters and can contain some of the request headers. The format can be either plain text, as specified in section, or base64 encoding, as specified in section Either format can be used with protocol versions 12.1, 14.0, 14.1, 16.0, and 16.1. The base64 encoding format is not supported by protocol versions 2.5 and 12.0; the plain text format is supported by all protocol versions.

The following two examples are equivalent. The first example uses the plain text query value, and the second example uses the base64-encoded query value.

 POST /Microsoft-Server-ActiveSync?Cmd=Sync&User=rmjones&DeviceId=v140Device&DeviceType=SmartPhone HTTP/1.1
 Content-Type: application/vnd.ms-sync.wbxml
 MS-ASProtocolVersion: 14.0
 User-Agent: ASOM
 Host: Contoso.com
 Accept-Language: en-us
 Content-Length: 868
 POST /Microsoft-Server-ActiveSync?jAAJBAp2MTQwRGV2aWNlAApTbWFydFBob25l HTTP/1.1
 Content-Type: application/vnd.ms-sync.wbxml
 User-Agent: ASOM
 Host: Contoso.com
 Content-Length: 866