Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 875 Bytes

3-Proxy-EN.md

File metadata and controls

28 lines (22 loc) · 875 Bytes

← Debug | Proxy(中文) | Timeout →


Http Proxy

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:password@localhost.com:10");
// Get https proxy
client.GetHttpsProxy();

// Set proxy whitelist
client.SetNoProxy("localhost.com,localtest.com");
// Get the agent white list
client.GetNoProxy();

← Debug | Proxy(中文) | Timeout →