HTTPS connection in iphone

How to connect to https url from iphone application? Is there any sample code?

+3
source share
3 answers

The same thing you are connecting to the http url. The Cocoa Touch API does all the heavy stuff backstage.

"Domain error = kCFErrorDomainCFNetwork Code = 306" means " Unable to connect to the specified HTTP proxy ." There seems to be a problem with your network configuration.

+1
source

You don’t need to use anything special to get the HTTPS information in iOS.

  1. HTML, UIWebView
  2. POST GET -, NSURL NSData, NSString - , .
0

. tcp sslv3. . readstream writestream

[readStream setProperty:NSStreamSocketSecurityLevelKey forKey:NSStreamSocketSecurityLevelSSLv3];

[writeStream setProperty:NSStreamSocketSecurityLevelKey forKey:NSStreamSocketSecurityLevelSSLv3];

- , , tcp sslv3

, .

0

Source: https://habr.com/ru/post/1710471/


All Articles