Post

Replies

Boosts

Views

Activity

Comment on Use proxy for http request from iOS device
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) {
3w
Comment on URLSession works for request but not NWConnection
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.
3d