Exchange server 使用GetAttachment命令从Exchange Server 2010下载附件时出现(400)错误请求错误
以下是我的请求标题:Exchange server 使用GetAttachment命令从Exchange Server 2010下载附件时出现(400)错误请求错误,exchange-server,http-status-code-400,Exchange Server,Http Status Code 400,以下是我的请求标题: POST [Server]/Microsoft-Server-ActiveSync?Cmd=GetAttachment&AttachmentName=5%3a1%3a0&User=[user]&DeviceId=[DeviceId]&DeviceType=[DeviceType] HTTP/1.1 Content-Type: application/vnd.ms-sync.wbxml Authorization: Basic [credent
POST [Server]/Microsoft-Server-ActiveSync?Cmd=GetAttachment&AttachmentName=5%3a1%3a0&User=[user]&DeviceId=[DeviceId]&DeviceType=[DeviceType] HTTP/1.1
Content-Type: application/vnd.ms-sync.wbxml
Authorization: Basic [credentials]
MS-ASProtocolVersion: 12.1
User-Agent: MSFT-WP/8.0.10211
X-MS-PolicyKey: [PolKey]
Host: [host]
Content-Length: 0
我正在尝试下载通过sync命令返回的电子邮件附件,如下所示:
<Attachment>
<DisplayName>ATT00001.txt</DisplayName>
<FileReference>5%3a1%3a0</FileReference>
<Method>1</Method>
<EstimatedDataSize>29406</EstimatedDataSize>
</Attachment>
ATT00001.txt
5%3a1%3a0
1.
29406
服务器支持12.1协议。我在这上面度过了最后的两天,一点运气都没有。如果有任何帮助,我们将不胜感激。刚刚解决了问题。
基本上,由于这个请求没有任何有效负载,所以首先不应该指定任何内容类型