Re: WKWebView and cookies

2016-04-12 Thread Jens Alfke
> On Apr 12, 2016, at 9:20 AM, Torsten Curdt wrote: > > Cookie headers are added later. I haven’t used WKWebView, but when using an > NSURLSession the cookies aren’t part of the NSURLRequest, but get added when > the request is sent. > > Hm - but shouldn't they be available in the response at

Re: WKWebView and cookies

2016-04-12 Thread Torsten Curdt
> > Cookie headers are added later. I haven’t used WKWebView, but when using > an NSURLSession the cookies aren’t part of the NSURLRequest, but get added > when the request is sent. > Hm - but shouldn't they be available in the response at least? I also tried to find it in the cookie storage >

Re: WKWebView and cookies

2016-04-12 Thread Jens Alfke
> On Apr 12, 2016, at 2:27 AM, Torsten Curdt wrote: > > but I still cannot see the cookie on the client. Cookie headers are added later. I haven’t used WKWebView, but when using an NSURLSession the cookies aren’t part of the NSURLRequest, but get added when the request is sent. > I also trie

WKWebView and cookies

2016-04-12 Thread Torsten Curdt
I am starting a request in a WKWebView on the iOS 9.3 simulator let url = NSURL(string:"http://localhost:8000/";) let req = NSMutableURLRequest(URL:url!) webView.loadRequest(req) and intercept the response where I try to print out the cookies func webView(webView: WKWebView, deci