NSURLConnection gives you an NSData object, so you'd have to convert your data to an NSString first to use that method (and you'd have to know the encoding). Once you have a string though, extracting bits of information from it depend entirely on the format, so substringWithRange would not always be the best. What if it was XML, tab-delimited, etc.?