February 2014
Intermediate to advanced
560 pages
18h 58m
English
When you try to access a web service, it will sometimes respond with an authentication challenge, which means “Who the heck are you?” You then need to send a username and password (a credential) before the server will send its genuine response.
When the challenge is received, the NSURLSession delegate is asked to authenticate that challenge, and the delegate will respond by supplying a username and password.
Open BNRCoursesViewController.m and update fetchFeed to hit a secure Big Nerd Ranch courses web service. (Do not forget to use https instead of http.)
- (void)fetchFeed
{
NSString *requestString = @"http://bookapi.bignerdranch.com/courses.json";
NSString *requestString = @"https://bookapi.bignerdranch.com/private/courses.json"; ...Read now
Unlock full access