How to programmatically add a proxy to an NSURLSession
It turns out, the dictionary keys you want are the Stream variants, they are the ones that resolve down to “HTTPProxy” and such: NSString* proxyHost = @”myProxyHost.com”; NSNumber* proxyPort = [NSNumber numberWithInt: 12345]; // Create an NSURLSessionConfiguration that uses the proxy NSDictionary *proxyDict = @{ @”HTTPEnable” : [NSNumber numberWithInt:1], (NSString *)kCFStreamPropertyHTTPProxyHost : proxyHost, (NSString *)kCFStreamPropertyHTTPProxyPort … Read more