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
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
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
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