Define proxy Configuration

Hi Team,

I’m a beginner to K6. Is there is way to define a proxy for the HTTP calls? Like we define a proxy on JMeter, LR, and Selenium (a configuration file). I know we can set up an environment variable on the fly ($env: HTTPS_PROXY=“localhost:8080”; k6 run test.js) to run the execution.

User Scenario:
Our application access is within a VPN. Also with the same URL with different proxy settings we access different environments.

Unfortunately you can’t specify different proxies for different requests in k6 yet, only the global HTTP_PROXY / HTTPS_PROXY :disappointed: We have an open issue about it (Allow proxy config per request · Issue #1045 · grafana/k6 · GitHub), please follow that for updates.