且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

发送http post请求时NSURLErrorDomain Code = -1001错误

更新时间:2023-01-03 11:56:09

显然我的帖子请求收到超时错误,因为我发送了一个服务器发现太大的图像。我按比例缩小图像以使服务器接受我的图像。

Apparently my post request was getting a timeout error since I was sending an image that the server would find too large. I scaled down the images in order to make my images acceptable by the server.

as 这篇文章建议, NSURLErrorDomain Code = -1001 可能导致错误许多事情包括;

As this post suggests, NSURLErrorDomain Code=-1001 error might be caused by many things including;


  • 服务器响应时间限制

  • 有关传入数据的服务器规则

  • 身份验证问题

希望对其他人有帮助