• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURL and certificates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL and certificates


  • Subject: Re: NSURL and certificates
  • From: John Stiles <email@hidden>
  • Date: Tue, 15 Apr 2008 18:27:38 -0700

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@hidden)

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:
This email sent to email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >NSURL and certificates (From: Stephane Huaulme <email@hidden>)

  • Prev by Date: NSURL and certificates
  • Next by Date: Re: Getting selection of IKImageView?
  • Previous by thread: NSURL and certificates
  • Next by thread: Re: NSURL and certificates
  • Index(es):
    • Date
    • Thread