Below is my code snippet:
/*cookie attached in request part*/
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:httpsURL cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData timeoutInterval:5.0f];
[request setValue:@"cookie1=value1" forHTTPHeaderField:@"Cookie"];
/*cookie attached using NSHTTPCookie*/
NSMutableDictionary *cookieProperties = [NSMutableDictionary dictionary];
[cookieProperties setObject:@"cookie2" forKey:NSHTTPCookieName];
[cookieProperties setObject:@"value2" forKey:NSHTTPCookieValue];
[cookieProperties setObject:[request URL].absoluteString forKey:NSHTTPCookieOriginURL];
[cookieProperties setObject:@"/" forKey:NSHTTPCookiePath];
NSHTTPCookie *cookie = [NSHTTPCookie cookieWithProperties:cookieProperties];
NSArray *arr = [NSArray arrayWithObjects:cookie, nil];
[request setAllHTTPHeaderFields:headers];
Question:
Now using the above configuration does my connection consider both the cookies during the request?