重定向iOS MDM本机代理

重定向iOS MDM本机代理,ios,http,redirect,mobile,mdm,Ios,Http,Redirect,Mobile,Mdm,我观察到iOS MDM本机代理有一种奇怪但一致的行为 当我们通过HTTP 301、302或307响应将其重定向到另一个URL时,代理将其HTTP PUT动词更改为GET,同时完全删除HTTP请求主体 例如,这是设备对[URL-1]的第一个HTTP请求: PUT [URL-1] HTTP/1.1 Host: [HOST] User-Agent: MDM/1.0 Content-Length: 306 Accept: */* Content-Type: application/x-apple-asp

我观察到iOS MDM本机代理有一种奇怪但一致的行为

当我们通过HTTP 301、302或307响应将其重定向到另一个URL时,代理将其HTTP PUT动词更改为GET,同时完全删除HTTP请求主体

例如,这是设备对[URL-1]的第一个HTTP请求:

PUT [URL-1] HTTP/1.1
Host: [HOST]
User-Agent: MDM/1.0
Content-Length: 306
Accept: */*
Content-Type: application/x-apple-aspen-mdm
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: keep-alive
Proxy-Connection: keep-alive

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
       <key>Status</key>
       <string>Idle</string>
       <key>UDID</key>
       <string>86ff0b7c0129f1c1ed4ff36984c1a2a3e5e06c81</string>
</dict>
</plist>
MDM本机代理是否支持HTTP重定向?
如果是这样,我们需要更改什么才能使它不删除HTTP正文,也不更改HTTP PUT谓词?

它支持HTTP重定向,但有例外。改用安全层进行重定向

HTTP/1.1 301 Moved Permanently
Content-Type: text/html; charset=UTF-8
Location: [URL-2]
X-Powered-By: ASP.NET
Date: Tue, 10 Jul 2012 10:48:31 GMT
Content-Length: 182
<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="[URL-2]">here</a></body>
GET [URL-2] HTTP/1.1
Host: [HOST]
User-Agent: MDM/1.0
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: keep-alive
Proxy-Connection: keep-alive