Objective Resource, Vodafone 3G, HTTP Basic Auth problems
I haven’t posted in a few days, as I haven’t made any progress in the last few days (and haven’t learnt anything!).
I got my app working perfect (unbeknown to me only on a wireless connection, iPhone App people, iPHONE!.. keep up.)
So it worked perfectly, I installed it on a colleague’s iPhone, then my Boss’s iPhone. [...]
In: Iphone · Tagged with: iPhone, Objective Resource
Iphone UIWebView HTTP Basic Authentication
So I need to send a user to a page that requires a login. I want to save those details in the app and send them with the initial request. But HOW?
#import "NSData+Additions.h"
@implementation Utility
+ (void) addAuthToWebRequest:(NSMutableURLRequest*)requestObj email:(NSString*)email password:(NSString*)password{
NSString *authString = [[[NSString stringWithFormat:@"%@:%@", email, password] dataUsingEncoding:NSUTF8StringEncoding] base64Encoding];
authString = [NSString stringWithFormat: @"Basic %@", authString];
[requestObj setValue:authString forHTTPHeaderField:@"Authorization"];
}
Which [...]
In: Iphone · Tagged with: iPhone, Objective C, Objective Resource
Objective Resource to the rescue
So I’m working on a top secret military iPhone app to be deployed in a top secret location…
Anyway, it needs to interact with a rails app. Googled around, found objective resource which is a great objc port of Active Resource.
Now, I needed to man handle it a bit for what I want it to do, [...]
In: Iphone · Tagged with: Active Resouce, iPhone, Objective C, Objective Resource, Rails
