The curl command has the option:
–noproxy List of hosts which do not use proxy
Does K6 have similar option?
The curl command has the option:
–noproxy List of hosts which do not use proxy
Does K6 have similar option?
Unfortunately not as a CLI flag, but it’s a very valid request, so I’ll make a note of it in our plans for a new version of the k6 HTTP request API.
Until that’s available however, you can either set the environment variables HTTP_PROXY
and HTTPS_PROXY
to an empty string, or exclude any domains via the NO_PROXY
environment variable. More details at http package - net/http - Go Packages
Great, setting NO_PROXY fixed my problem and I think adding a CLI flag
is a good idea.
Thanks for you help.