Re: NSURL and certificates

2008-04-16 Thread Bill Monk
On Apr 16, 2008, at 12:03 AM, Stephane Huaulme <[EMAIL PROTECTED]> wrote: when I try to fetch a web page on an internal server using: [NSString stringWithContentsOfURL:[NSURL URLWithString: theURLString] encoding:NSASCIIStringEncoding error:&theError]; I get the following error: {contents

Re: NSURL and certificates

2008-04-15 Thread Nick Zitzmann
On Apr 15, 2008, at 7:20 PM, Stephane Huaulme wrote: I get the following error: {contents = "NSUnderlyingError"} = Error Domain=NSURLErrorDomain Code=-1203 UserInfo=0x15579210 "bad server certificate what can I do about this? Without calling a private API, nothing. Nick Zitzmann

Re: NSURL and certificates

2008-04-15 Thread John Stiles
AFAIK, you'd need to use the lower-level NSURL* APIs (e.g. NSURLConnection) instead of stringWithContentsOfURL, which is going to be a little more work. Unless there is some trick I don't know about... Also, you don't really want ASCII encoding—probably UTF8 is more what you had in mind. ASCII

NSURL and certificates

2008-04-15 Thread Stephane Huaulme
when I try to fetch a web page on an internal server using: [NSString stringWithContentsOfURL:[NSURL URLWithString: theURLString] encoding:NSASCIIStringEncoding error:&theError]; I get the following error: {contents = "NSUnderlyingError"} = Error Domain=NSURLErrorDomain Code=-1203 UserInfo