I'm currently pulling in user data from a site where the user must authenticate before reaching the page where the data exists. I've managed to do so by using a combination of javascript injection (transfers uitextfield strings to the web form), NSURL (pulls in content) and Hpple (for parsing through the html). However I feel like there must be a better way or a better library out there.
I'm currently using NSUserDefault Bool Keys to check if the user is authenticated or not, but it's a little jittery.
I've heard of AFNetworking but I never was able to quite figure out what I needed. Right now I'm basically loading a hidden webview with the login page, injecting the uitextfield data into the page, authenticating, and then displaying a new view with the scraped data. Could anyone recommend an example or tutorial regarding AFNetworking and authentication? Keep in mind that this site has no api or for that matter api keys etc. My content is also plain html (most tutorials talk about json). :\
Thank you so much!