阅读背景:

当方法不是POST时,NSURLRequest无法处理HTTP正文?

来源:互联网 

Whenever I set a body on a mutable request with the method set to anything other than POST, the body is not included in the request and I get a kCFErrorDomainCFNetwork error 303 (kCFErrorHTTPParseFailure) when the server replies. Changing the method to POST is all it takes for the request to go through with no error. Is there any way to attach a body to other methods, or are we stuck with POST for everything?Whenever I set a body on a mutable request with




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: