I am targeting multiple web servers that I don't have control over, but each thread/task will only target one specific server, so there is no need to manage cookies for multiple sites at the same time. These web-servers use a shared service so all the request/responses will be similar across. I could use the NWConnection solution that I already have which works but just unsure how to get the Set Cookies from responses and add them to next requests.
Post
Replies
Boosts
Views
Activity
Thank you so much! I got it connected to the proxy but now there's a little bug in the request, could you please have a look here. Also If I am using NWConnection how would you recommend to improve the speed calculation? I mean I can't use a method such as below since its not a URLSession.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
@Claude31 no this is not the real code just a minimal reproducible example that I tried to simplify. No I didn't get the model from that link.
Im having the same issue @kam do you know a fix
@chitgoks the same thing is happening to me Im getting error Error Domain=kCLErrorDomain Code=1 "(null)" , I also have the same code as you. Any idea whats goin on