how can i connect proxy server, and encrypt CONNECT method request?

According to this document, I set up the proxy.

NSString* proxyHost = @"https://proxy.my.com";
NSInteger proxyPort = 39525;
NSURLSessionConfiguration *config = [NSURLSessionConfiguration ephemeralSessionConfiguration];
    
   config.connectionProxyDictionary = @{
        @"HTTPSEnable":@YES,
        @"HTTPSProxy":proxyHost,
        @"HTTPSPort":@(proxyPort),
      };
   NSLog(@"set proxy!\n");
    

but the CONNECT request is sent in clear text. which will reveal my Intranet URL. Is there any way to encrypt this CONNECT request?

I’m not sure if this will fix your specific problem, but you’re configuring the proxy incorrectly. The HTTPSProxy property is meant to be a host not a URL.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

how can i connect proxy server, and encrypt CONNECT method request?
 
 
Q