我送使用NSURLSession POST请求,并得到如下回应:NSURLSession POST方法没有得到响应正确
{ status code: 200, headers {
"Cache-Control" = "no-store, no-cache, must-revalidate, post-check=0, pre-check=0";
Connection = "Keep-Alive";
"Content-Length" = 77;
"Content-Type" = "text/html; charset=UTF-8";
Date = "Tue, 26 Apr 2016 12:39:23 GMT";
Expires = "Thu, 19 Nov 1981 08:52:00 GMT";
"Keep-Alive" = "timeout=5, max=100";
Pragma = "no-cache";
Server = "Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15";
"X-Powered-By" = "PHP/5.6.15";
} } (null)
Data = {"result":{"status":"success","msg":"documents saved Successfully."}}
我不想要这个响应头。使用上述响应无法解析数据。 我该怎么做?请帮助me.Thanks
有何反应?你如何记录它?这是来自服务器的连接头数据,不是你的。什么 – Larme
这不是数据,这是服务器端错误 请确认您发表您的要求的内容类型, 是它实现在服务器端或不 –
检查你的请求和响应序列化。检查您的邮递员的网址或谷歌浏览器的预先休息客户端。检查哪个格式的数据由服务器接受和这将是响应的格式(EXA:字符串,JSON对象等)。你可以询问你的服务方面的人 – Lion