2.2.2.1 Common Request Format

The common client request across all endpoints used in this protocol has the following format.

 POST <Autodiscover-provided endpoint> HTTP/1.1
 Host: <URL of the host server>
 Content-Length: <length of REQUEST BODY>
 Content-Type: application/mapi-http
 X-RequestType: <?>
 X-RequestId: <id>
 X-ClientApplication:<client version>
  
 <REQUEST BODY>

The client request MUST contain the following headers:

  • Host, as specified in section 2.2.3.1

  • X-RequestType, as specified in section 2.2.3.3.1

  • X-RequestId, as specified in section 2.2.3.3.2

  • Content-Type, as specified in section 2.2.3.2.2

  • Content-Length, as specified in section 2.2.3.2.1

Other headers are allowed based on the request type used. For details about all headers allowed, see section 2.2.3.