【发布时间】:2013-03-13 07:03:25
【问题描述】:
在我的 iPhone 应用程序中,我正在使用 JSON 进行一些 Web 服务调用。在返回数据中,我得到一个状态码(200、404 等),以及它们正在发送的消息。
这是我在 Rest 客户端中得到的结果:
Status Code: 401 Invalid Access token
Cache-Control: private
Connection: Keep-Alive, Proxy-Support
Content-Length: 0
Date: Wed, 13 Mar 2013 06:37:26 GMT
Proxy-Support: Session-Based-Authentication
Server: Microsoft-IIS/7.5
Via: 1.1 WIN-JO3AMACI965
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
在此,我想收到“无效访问令牌”消息以及状态码 401。有可能吗?
提前致谢。
【问题讨论】:
-
你用什么来做你的网络 -
NSURLConnection,或者像RestKit或AFNetworking这样的库?
标签: ios json web-services