仅在iOS 8中的NSMutableURLRequest中添加其他参数以及如何从请求中删除标题。
请求格式如下:
iOS 8:
{ URL:api, headers: {
Accept = "text/xml; charset=utf-8";
"App-Platform" = IOS;
"App-Version" = "3.6";
"Content-Length" = 130;
"Content-Type" = "text/xml";
} }
iOS 7:
{ URL:api}
提前致谢