I want to get some information from this website "http://phim14.net/". I use this code :
NSURL *url = [NSURL URLWithString:@"http://phim14.net/"];
NSError *error;
NSData *htmlData = [NSData dataWithContentsOfURL:url options:NSDataReadingUncached error:&error];
TFHpple *parser = [TFHpple hppleWithHTMLData:htmlData];
At the beginning this code is working and I can get some info. But after several times trying I met an error that "htmlData" was return nil, so I think the website was down but I can connect to that webpage using Firefox. I try to parse other website but it's still ok? I try to print out the error and it said that
`"error NSError * domain: @"NSCocoaErrorDomain" - code: 256 0x00007fbb224023c0"`
Someone please help me figure out what is the problem??