nsurlcredential

didReceiveAuthenticationChallenge causing EXC_BAD_ACCESS

If the website doesn't require authentication, my code works fine, if it does, it errors with EXC_BAD_ACCESS right after printing "credential created". I'm not releasing anything, and this code is copied straight from the documentation - any idea what's wrong? - (void)connection:(NSURLConnection *)connection didReceiveAuthenticationCha...

iPhone: How to Get Basic Authentication to HTTPS Web Service Using NSURLCredential

I am trying to call an https web service (RESTful) using basic authentication. It works fine if I put the credentials in the url itself but I would rather add it to the request so that the password does not appear, for instance in an exception. I am using the following code: NSURLCredential *credential = [NSURLCredential credential...

HTTP Digest authentication in Objective -C using byte array as password

Hi, i am using asynchronous URL connection to access a resource from server which uses HTTP digest authentication. In my (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge delegate method i have the following code newCredential=[NSURLCredential credentialWit...

NSURLConnection, NSURLRequest, untrusted cert and user authentication

Morning Everyone, I've been attempting to write an application that does some GETs from a remote Web Service that requires authentication. My main problem is that the majority of these remote servers (and there are a lot of them) don't have valid certificates. I've got code to accept the invalid certificate and code to respond to the ch...