アプリケーションのサーバーから必要な情報をすべて読み込む必要があります。例えば;次のURLから国の詳細を読み込みたいと思います。iPhoneデバイスでHttpsリクエストが機能していません
https://sub.domain.com//members/phone/XML_list_countries.php
しかし、私は次のエラーを取得しています。しかし、Simulatorで同じ要求が働いています。
ERROR
Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x3b8d10 {NSErrorFailingURLStringKey=https://secure.nymgo.com//members/softphone/XML_list_countries.php, NSErrorFailingURLKey=https://secure.nymgo.com//members/softphone/XML_list_countries.php, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x3b5090 "The request timed out."}
CODE
NSURL *url=[NSURL URLWithString:@"https://secure.nymgo.com//members/softphone/XML_list_countries.php"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
[request setHTTPMethod:@"GET"];
NSURLConnection *_connection = [[NSURLConnection alloc] initWithRequest:_request delegate:self];
if(!_connection){
NSLog(@"Can not make this request.");
}
私は必要なすべてのdelegate
のメソッドを実装しています。
注:私のデバイスは、プロキシ設定でWifiで動作しています。
私は何がうまくいかないのか分かりません。この問題を解決するのを手伝ってください。
HTTPリクエストでチェックしたところ、デバイスで正常に動作していますが、HTTPSが機能していません。 – jfalexvijay