Ive been pulling my hair out for the last week on this now, and still not getting any closer.
Im building an app for my university project, where it combines all the services into one, (Blackboard, Intranet, Email) These all have seperate logins, on seperate web pages.
Im aiming to combine all these services into one app, with only one centralised log in. However the log in will simply not work for me at all, they use a form based log in, with a javascript background.
Ive tried ASIHTTP:
-(void)startWebViewLoad{
NSString *emailURL = @"https://home.swan.ac.uk";
NSURL *url = [NSURL URLWithString:emailURL];
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setPostValue:@"username" forKey:@"user_name"];
[request setPostValue:@"password" forKey:@"password"];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webViewEmail loadRequest:requestObj];
I may have put this in the wrong part of the code (Im displaying the page after login in a UIWebView) But this will not log me in it all.
Is there a better way to log in using the form? Or am I close with my current code
Thank you for your time