Re: SSL NSURLConnection to fake-cert server?
Re: SSL NSURLConnection to fake-cert server?
- Subject: Re: SSL NSURLConnection to fake-cert server?
- From: Rick Mann <email@hidden>
- Date: Tue, 20 Mar 2012 11:16:12 -0700
On Mar 20, 2012, at 10:53 , Jens Alfke wrote:
>
> On Mar 19, 2012, at 10:16 PM, Rick Mann wrote:
>
>> What do I need to do to? I'm using
>> -sendAsynchronousRequest:queue:completionHandler:
>> So I can't set a delegate.
>
> If you want more control over credentials and certificate trust, you’ll need to use the delegate API.
I had written a fairly elaborate wrapper around the delegate-based API so I could use blocks in a way similar to what the new call provides.
It also returned the NSURLConnection object, and allowed canceling of a request. But I always felt like it was messy and possibly contained bugs; I was pretty happy to see Apple add their API (even if I couldn't use it to cancel a request). I just wish they'd thought it through a bit more.
--
Rick
>
> —Jens
>
> _______________________________________________
>
> 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