阅读背景:

当swift中服务器端发生异常时,无法获得http响应

来源:互联网 

I am using NSURLSession to request http post to server. It works fine if everything is ok. But I can't get the response when the server throw an exception. In browser, I should be able to get the 505 error code. But I can't get it in swift. Below is the code I used. Is there anything wrong with it?I am using NSURLSession to request http post to




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

分享到: