Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

BollywooD

macrumors 6502
Original poster
Apr 27, 2005
369
46
Hamburg
Ive found some inconsistencies with the NSHTTPCookieStorage.

I have implemented the following code, in my project:

Code:
NSString * theDomain = [theURL host];
NSLog(@"the domain is %@", theDomain);


when visiting facebook.com, i get the expected output:
"the domain is www.Facebook.com"

but when visiting torrentz.com
nothing is returned?

am i missing something here?
why does torrentz.com, and some other domains, not return a valid value for: [theURL host]
:confused:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.