Skip to main content
Transform your testing process with: Company-wide Licences, Test Observability & App Percy
No Result Found

Configuring Proxy Requests

The role and benefits of proxying requests during the visual testing process.

To Percy’s API

Percy’s SDKs implement the industry convention for proxying requests via HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables.

# unix example, set the env variable the way your OS/System expects
$ export HTTP_PROXY=http://a-proxy.example.com:1234
$ export HTTPS_PROXY=https://another-proxy.example.com:1234
# general syntax for setting proxy
$ export HTTPS_PROXY=https://username:password@proxyurl:proxyport
$ export NO_PROXY=http://example.com:1234
# windows example, set the env variable the way your OS/System expects
> $Env::HTTP_PROXY = 'http://a-proxy.example.com:1234'
> $Env::HTTPS_PROXY = 'https://another-proxy.example.com:1234'
# general syntax for setting proxy
> $Env::HTTPS_PROXY = 'https://username:password@proxyurl:proxyport'
> $Env::NO_PROXY = 'http://example.com:1234'
# windows example, set the env variable the way your OS/System expects
$ set HTTP_PROXY=http://a-proxy.example.com:1234
$ set HTTPS_PROXY=https://another-proxy.example.com:1234
# general syntax for setting proxy
$ set HTTPS_PROXY=https://username:password@proxyurl:proxyport
$ set NO_PROXY=http://example.com:1234

Asset discovery

If you need to proxy requests that occur in asset discovery, you may need to pass a --proxy-server CLI flag as a browser launch argument in the Percy discovery configuration.

Shell
Copy icon Copy

Reference Topic

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle