Skip to content

Instantly share code, notes, and snippets.

@pyanfield
Last active October 13, 2015 06:27
Show Gist options
  • Save pyanfield/4153133 to your computer and use it in GitHub Desktop.
Save pyanfield/4153133 to your computer and use it in GitHub Desktop.
Get your cookies on iOS
NSArray *array = [[NSHTTPCookieStoragesharedHTTPCookieStorage] cookiesForURL:[NSURLURLWithString:HOST]];
for (NSHTTPCookie *cookie in array) {
for (NSString *key in cookie.properties) {
Logger(@">>>>> cookie key : %@, >>>>>> %@",key,cookie.properties[key]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment