NSHTTPURLResponse
does not implement a method that exposes the data, and the HTTP RFC does not a require it to. AFNetworking uses NSURLRequest
/ NSURLResponse
, and so AFNetworking cannot give it to you either. ASIHTTPRequest can, on the other hand, because it uses the lower-level CFNetwork
framework.
The advice given in the other answers, to move this information to your headers or body, is the best answer.
You can also file an enhancement request with Apple, and / or stick with ASIHTTPRequest.