iPhone development: How to implement HTTPS connection?
问题 I am working on an iPhone project which need to connect to the IIS server over HTTPS or SSL protocol. Can anyone tell me how to implement HTTPS connection in iPhone? Any advice would be appreciate. Thank you in advance. 回答1: Ben Copsey's ASIHTTPRequest framework makes it trivially easy to issue web requests over SSL. Modifying the site's example slightly: NSURL *url = [NSURL URLWithString:@"https://allseeing-i.com"]; ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request