Hi all...
I am trying to load the source of a webpage.
This is how i do it...
Code:
NSError *lookupError = nil;
NSURL *url = [ NSURL URLWithString:@"https://www.coldstorage.com.sg/onlineshopping/browse-brand.aspx?Brand=AALST"];
if(!url)
NSLog(@"Invalid url");
NSString *source = [NSString stringWithContentsOfURL:url
encoding:NSUTF8StringEncoding error:&lookupError];
NSLog([lookupError localizedDescription]);
This works for other webpages except this one... the error i get is that
The file “browse-brand.aspx” could not be opened.
I do not understand what this means...
If it works when i enter this in the safari address bar... shouldnt it work now too...
Thanx,
Saran.