Authentication and NSURLConnection sendSynchronousRequest

2008-06-12 Thread Paul E. Robichaux
I¹m writing a simple demo application showing how to use some Exchange Web Services (EWS) features in Cocoa. I am a total Cocoa n00b but have most of the app and UI working, thanks to a lot of google-fu and my now-worn copy of Hillegas' 3rd ed. I¹m having trouble authenticating to the actual EWS se

Re: Authentication and NSURLConnection sendSynchronousRequest

2008-06-12 Thread Paul E. Robichaux
On 6/12/08 12:44 PM, "Jens Alfke" <[EMAIL PROTECTED]> wrote: > > On 12 Jun '08, at 8:35 AM, Paul E. Robichaux wrote: > >> @implementation NSURLRequest(NSHTTPURLRequest) >> + (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host >> { >>

Re: Authentication and NSURLConnection sendSynchronousRequest

2008-06-12 Thread Paul E. Robichaux
On 6/12/08 2:18 PM, "Jens Alfke" <[EMAIL PROTECTED]> 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(NSHTT

NSURLConnection didReceiveAuthenticationChallenge weirdness

2008-06-17 Thread Paul E. Robichaux
I'm trying to properly respond to authentication challenges by overriding didReceiveAuthenticationChallenge. In the init method of my custom object, I take the user name and password passed in and create a NSURLCredential: EWScreds = [NSURLCredential credentialWithUser: inUserNam

Newbie seeks code review

2008-06-23 Thread Paul E. Robichaux
I'm a brand-new Cocoa programmer, and I've just finished the first demo-able version of my first app: it uploads conversation files from the corporate version of Mac Messenger to a user's "Conversation History" folder in their Exchange Server mailbox. So, not exactly mass market, but certainly u