对于Android,我已经能够通过以下方式发送POST请求:
HttpClient http = new DefaultHttpClient();
HttpPost request = new HttpPost("https://somewebsite.com");
request.setEntity(new StringEntity(data));
http.execute(request);
然而,在iOS上我收到了以下错误:
NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9843)
在iOS上使用https执行同步POST请求的最佳方法是什么?