NSURL *url;
NSData *data;
NSString *blork;
url = [NSURL URLWithString: @"http://www.mycompanyaddress.com/identity_check.jsp?cliId=A-00000&security_key=00000"];
data = [url resourceDataUsingCache: NO];
blork = [[NSString alloc] initWithData: data encoding: NSASCIIStringEncoding];
UIAlertView *testMessage = [[UIAlertView alloc] initWithTitle: @"From Server: " message: blork delegate: self cancelButtonTitle: @"Ok" otherButtonTitles: nil];
[testMessage show];
[testMessage release];
RESOURCEDATAUSINGCACHE is now a deprecated function..otherwise it worked like a charm
you can use –
and as document says
Use
NSURLConnectioninstead of this method.