• 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: Authentication and NSURLConnection sendSynchronousRequest
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Authentication and NSURLConnection sendSynchronousRequest


  • Subject: Re: Authentication and NSURLConnection sendSynchronousRequest
  • From: "Paul E. Robichaux" <email@hidden>
  • Date: Thu, 12 Jun 2008 14:42:48 -0400
  • Acceptlanguage: en-US
  • Thread-topic: Authentication and NSURLConnection sendSynchronousRequest



On 6/12/08 2:18 PM, "Jens Alfke" <email@hidden> wrote:

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

So *that's* what that's for. Thanks!

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

A little further digging revealed
<http://www.cocoabuilder.com/archive/message/cocoa/2007/5/19/183405>, which
claims that the method's implemented on NSURLRequest. Sure enough, when I
define it there, my app is now failing with
NSURLErrorUserCancelledAuthentication, which is a step in the right
direction :)

_______________________________________________

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: 
 >Re: Authentication and NSURLConnection sendSynchronousRequest (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Simple question - Subclassing NSView
  • Next by Date: Re: Simple question - Subclassing NSView
  • Previous by thread: Re: Authentication and NSURLConnection sendSynchronousRequest
  • Next by thread: how to prevent sleep mode when app is running
  • Index(es):
    • Date
    • Thread