tags:

views:

1813

answers:

4

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

Thanks & Regards, Yogini

A: 

You don't need to use anything special in order to GET information through HTTPS protocol in iPhone SDK.

  1. If you need to display HTML information, use UIWebView
  2. If you just need to POST or GET something, use NSURL in combination with NSData, NSString or something to retrieve the information contained in it.
Pablo Santa Cruz
A: 

The same way that you connect to a http URL. The Cocoa Touch API does all the hard stuff behind the scenes.

"Error Domain=kCFErrorDomainCFNetwork Code=306" means "A connection could not be established to the specified HTTP proxy." Seems that there's a problem with your networking configuration.

Stephen Darlington
Prajakta
Maybe you should edit your question and add that information?
Stephen Darlington
+2  A: 

The most common cause of this is an untrusted certificate. If you cannot install a trusted certificate, see the previous discussion of this.

Rob Napier
A: 

Hi , Is der any way to estabilish a secure connection with the server using tcp with sslv3. I need some sample code and the way to implement. now I am just setting the readstream and writestream's property as follows

[readStream setProperty:NSStreamSocketSecurityLevelKey forKey:NSStreamSocketSecurityLevelSSLv3];

[writeStream setProperty:NSStreamSocketSecurityLevelKey forKey:NSStreamSocketSecurityLevelSSLv3];

do any one provide some sample link or sample code in order to estabilish a secure connection using tcp with sslv3

Regards, Mohammed Sadiq.

Mohammed Sadiq