Hello Sam,
I was just wondering... is there a reason why you're not implementing the challenge callback?:
- (void)connection:(NSURLConnection *)aConnection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
That would take care of BASIC and DIGEST-based authentication.