opening http://ystatuschecker.com/n/iwall.php?tedad=1 by browser in safari in mac will redirect to http://ystatuschecker.com/n/iwall.php?tedad=5000
i don't know why in my code it's never redirect .
http://yahoo.ir will redirect to http://world.yahoo.com
what's wrong with my URL?
NSURL *originalUrl=[NSURL URLWithString:@"http://ystatuschecker.com/n/iwall.php?tedad=1"];
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];
NSLog(@"%@",LastURL);