PDA

View Full Version : NSHTTPCookieStorage




BollywooD
Apr 18, 2009, 10:34 PM
Ive found some inconsistencies with the NSHTTPCookieStorage.

I have implemented the following code, in my project:

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: