Ortam değişkenlerini veya SDK istemci yöntemlerini kullanarak Classic SDK'da HTTP proxy, HTTPS proxy ve no-proxy listesi yapılandırın.
Aşağıdaki ortam değişkenleri HTTP proxy, HTTPS proxy ve no-proxy listesini yapılandırır:
HTTP_PROXY veya http_proxy
HTTPS_PROXY
NO_PROXY
SDK istemcisini başlatırken de proxy yapılandırabilirsiniz. İstemci düzeyindeki proxy yapılandırması, ortam değişkenlerine göre önceliklidir.
//Configure an HTTP proxy.
client.SetHttpProxy("http://localhost:8080");
//Query the HTTP proxy.
client.GetHttpProxy();
//Configure an HTTPS proxy.
client.SetHttpsProxy("https://localhost:8080");
client.SetHttpsProxy("http://username:password@localhost:8080");
//Query the HTTPS proxy.
client.GetHttpsProxy();
// Configure the addresses that do not require proxies.
client.SetNoProxy("example.com");
// Query the addresses that do not require proxies.
client.GetNoProxy();