From b7a0423c061fe251daa102063d7d02a37eb10dc4 Mon Sep 17 00:00:00 2001 From: "Suresh, Kamlesh" Date: Fri, 14 Dec 2018 15:03:28 -0500 Subject: [PATCH] print cookie --- MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m index a3b244e..094fdb4 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m @@ -333,6 +333,11 @@ } } + MVMCoreLog(@"********************************* Cookie Sent *********************************"); + [[[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies] enumerateObjectsUsingBlock:^(NSHTTPCookie * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) { + MVMCoreLog(@"Cookie Name: %@, Cookie Value: %@",obj.name, obj.value); + }]; + [[NSNotificationCenter defaultCenter] postNotificationName:MVMCoreNotificationGoingToServer object:nil]; NSURLSessionTask *task = [session dataTaskWithRequest:request completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {