iOS Can't perform HTTP GET request -Error Domain=NSURLErrorDomain Code=-1012

后端 未结 4 911
长发绾君心
长发绾君心 2020-12-16 14:35

I am trying to perform a HTTP Get request, but I keep on getting Error Domain=NSURLErrorDomain Code=-1012 error. MY code is :

@try {
    NSString *url = [[N         


        
4条回答
  •  粉色の甜心
    2020-12-16 15:12

    You may get this error while hitting a HTTPS (not HTTP) URL with a bad/expired certificate with AFNetworking. (Chrome shows the "Your connection is not private" message when hitting the URL).

提交回复
热议问题