Created
April 12, 2011 01:11
-
-
Save toranb/914731 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSURLRequest *)connection:(NSURLConnection *)connection willSendRequest:(NSURLRequest *)request redirectResponse:(NSHTTPURLResponse *)response { | |
if (response != nil) { | |
NSArray* authToken = [NSHTTPCookie | |
cookiesWithResponseHeaderFields:[response allHeaderFields] | |
forURL:[NSURL URLWithString:@""]]; | |
if ([authToken count] > 0) { | |
NSLog(@"cookies from the http POST %@", authToken); | |
} | |
} | |
return request; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment