4.10.5.1 Request

The following example shows the ItemOperations command request (as described in section 2.2.1.10) sent from the client to the server to retrieve an email message. The request contains the MS-ASAcceptMultiPart header, described in [MS-ASHTTP] section 2.2.1.1.2.5, set to "T", indicating that the client will accept a multipart response.

 POST /Microsoft-Server-ActiveSync?Cmd=ItemOperations
   &User=deviceuser&DeviceId=v140Device&DeviceType=PocketPC
 Content-Type: application/vnd.ms-sync
 MS-ASProtocolVersion: 14.1
 MS-ASAcceptMultiPart: T
  
 <?xml version="1.0" encoding="utf-8"?>
 <ItemOperations xmlns:airsync="AirSync"
 xmlns:airsyncbase="AirSyncBase" xmlns="ItemOperations">
   <Fetch>
     <Store>Mailbox</Store>
     <airsync:CollectionId>5</airsync:CollectionId>
     <airsync:ServerId>5:1</airsync:ServerId>
     <Options>
       <airsyncbase:BodyPreference>
         <airsyncbase:Type>1</airsyncbase:Type>
         <airsyncbase:TruncationSize>5120</airsyncbase:TruncationSize>
         <airsyncbase:AllOrNone>0</airsyncbase:AllOrNone>
       </airsyncbase:BodyPreference>
     </Options>
   </Fetch>
 </ItemOperations>