Re: Authentication and NSURLConnection sendSynchronousRequest
Re: Authentication and NSURLConnection sendSynchronousRequest
- Subject: Re: Authentication and NSURLConnection sendSynchronousRequest
- From: Jens Alfke <email@hidden>
- Date: Thu, 12 Jun 2008 11:18:33 -0700
On 12 Jun '08, at 10:35 AM, Paul E. Robichaux wrote:
After doing that, I now get a compiler warning that there's a
duplicate
interface defined for NSURLRequest(NSHTTPURLRequest),
You can get around that by changing the category name (the part in
parentheses) to anything different.
and at runtime when I
call the routine I get errors in my log:
+[NSURLConnection setAllowsAnyHTTPSCertificate:forHost:]: unrecognized
selector sent to class 0xa02645a0
Hm, that means that method isn't actually implemented in
NSURLConnection. I guess it's left for subclasses to implement. In
that case, try creating a subclass of NSURLConnection, containing
nothing but the +allowsAny... method you used to have, and then call
+sendSynchronousRequest:... on the subclass.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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