4.4 Re-Establish a Timed-Out Connection to the Server

This scenario describes re-establishing a timed-out Session Context. This is similar to the process of establishing a new Session Context as described in section 3.1.5.1, but Cookie headers, as described in section 2.2.3.2.4, are passed with the session context cookie associated with the expired Session Context. New session context cookies are passed back in the response for the re-established Session Context using the Set-Cookie header, as described in section 2.2.3.2.3.

Client request

 POST <Autodiscover-provided endpoint> HTTP/1.1
 Host: <URL of the host server>
 Content-Length: <length of REQUEST BODY>
 Content-Type: application/mapi-http
 Cookie: <session context cookie>=<opaque string>
 Cookie: <request sequence cookie>=<opaque string>
 X-RequestType: Connect
 X-ClientInfo: <opaque string>
 X-RequestId: <unique identifier>
 X-ClientApplication: <client version>
  
 <REQUEST BODY>

Server response

 HTTP/1.1 200 OK
 Content-Length: <length of META-TAGS, ADDITIONAL HEADERS and RESPONSE BODY>
 Content-Type: application/mapi-http
 Set-Cookie: <session context cookie>=<new opaque string>
 Set-Cookie: <request sequence cookie>=<new opaque string>
 X-RequestType: Connect
 X-RequestId: <unique identifier>
 X-ResponseCode: 0
 X-ClientInfo: <opaque string>
 X-ServerApplicaiton: <server version>
 X-ExpirationInfo: <milliseconds>
 <CRLF>
 PROCESSING<CRLF>
 DONE<CRLF>
 X-ResponseCode: 0<CRLF>
 X-ElapsedTime: <milliseconds>
 X-StartTime: <date/time>
 <CRLF>
 <RESPONSE BODY>