Created
August 27, 2013 14:13
-
-
Save DomiR/6354068 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSURL *originalUrl=[NSURL URLWithString:@"http://YourURL.com"]; | |
NSData *data=nil; | |
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:originalUrl cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10]; | |
NSURLResponse *response; | |
NSError *error; | |
data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; | |
NSURL *LastURL=[response URL]; | |
[request release]; | |
[error release]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment