Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Go proxy variables (HTTP_PROXY, HTTPS_PROXY, NO_PROXY) #1913

Open
heitortsergent opened this issue Mar 25, 2025 · 0 comments
Open
Assignees
Labels
Area: OSS Content Improvements or additions to community/oss documentation

Comments

@heitortsergent
Copy link
Collaborator

From a k6 blog post:


"To have k6 send its traffic through a web proxy, we'll need to tell it on which TCP port the web proxy is listening.

Behind the scenes, k6 runs Go, and we use the built-in Go HTTP client for communication. Unlike some applications that use host OS proxy settings, Go programs depend on the presence of specific Environment Variables to determine whether to use a proxy and where it is listening. These magical Environment Variables are:

Name Description
HTTP_PROXY The proxy address given either as complete URL or as host:port that will be used for HTTP requests unless overwritten by NO_PROXY.
HTTPS_PROXY The proxy address given either as complete URL or as host:port that will be used for HTTPS requests unless overwritten by NO_PROXY.
NO_PROXY Hosts that should bypass proxies. This is a comma-separated string of IP addresses and/or host names. See the httpproxy docs for more info. Example: "1.2.3.4, 2.3.4.5:80, myhost.com"."
@heitortsergent heitortsergent self-assigned this Mar 25, 2025
@heitortsergent heitortsergent added the Area: OSS Content Improvements or additions to community/oss documentation label Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: OSS Content Improvements or additions to community/oss documentation
Projects
None yet
Development

No branches or pull requests

1 participant