Currently my non-visual crawl is built using NSUrlConnection. (I need to rewrite that to NSURlSession at some point.) My visual crawl/perform-login is built using WebView. (I am working on implementing support for WkWebView, but using Lazarus so a bit convoluted getting everything I need working.)
My use case is that I am using an embedded visual browser for login and having cookies set. I then want to continue crawling using the same session/everything/login/cookies using NSURLConnection/NSURLSession.
From my research it appears WkWebView is handling cookies much different from WebView/NSUrlConnection/NSURlSession and I will need to write some read/write cookies wrapper there. It seems WebView will automatically write to the within-app-shared-cookie-storage and those cookies are available at least within the app while the app runs.
Assuming that is correct: How can I use those cookies set by WebView (I will deal with WkWebView later) from within NSURLConnection and NSURLSession?