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 encoding will immediately fail (and return NULL) if any accented/non-English characters are present.


Stephane Huaulme 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:

<CFString 0xa00daec8 [0xa01d71a0]>{contents = "NSUnderlyingError"} = Error Domain=NSURLErrorDomain Code=-1203 UserInfo=0x15579210 "bad server certificate

what can I do about this?

my problem would likely go away if I could do something like:

wget --no-check-certificate

but i don't know how to do that with NSURL. Is it possibe?
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/jstiles%40blizzard.com

This email sent to [EMAIL PROTECTED]
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to