← Debug | Proxy(中文) | Timeout →
If you want to use the http, https proxy or proxy whitelist, you can set the environment variables HTTP_PROXY , HTTPS_PROXY and NO_PROXY , or you can configure them via the client.
// Client priority is higher than environment variable
// Set up the http proxy
client.SetHttpProxy("http://localhost.com");
// Get http proxy
client.GetHttpProxy();
// Set up the https proxy
client.SetHttpsProxy("https://localhost.com");
client.SetHttpsProxy("http://username:[email protected]:10");
// Get https proxy
client.GetHttpsProxy();
// Set proxy whitelist
client.SetNoProxy("localhost.com,localtest.com");
// Get the agent white list
client.GetNoProxy();