question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Requests via proxy

See original GitHub issue

I would like to make requests with artillery via proxy. How do I do that?

I want to do something like this:

curl https://httpbin.org/post -kv \
  -x user:password@my-proxy:8080 \
  -H "Content-type: application/json" \
  -d '{"secret": "asdf"}'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
zdmytrivcommented, Feb 18, 2018

this hack worked for me:

NO_PROXY='example.com' HTTP_PROXY='http://user:password@proxy.com' artillery run config.yml -k

set NO_PROXY for one domain and proxy for others. Closing this issue.

0reactions
ududshacommented, Jun 24, 2020

@hassy, Do you mean setting up OS environment variables or a test’s ‘config.environments.variables’ section for ‘HTTP_PROXY’/‘HTTPS_PROXY’? I’m facing the issue with running artillery in corporate network, behind a proxy.

Did you find any solution? I also have the same issue. For me its giving TIMEOUT for all the requests.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use a Proxy with Python Requests? - ScrapingBee
To use a proxy in Python, first import the requests package. · Next create a proxies dictionary that defines the HTTP and HTTPS...
Read more >
Using a Proxy Server with Python requests - Datagy
In order to use proxies in the requests Python library, you need to create a dictionary that defines the HTTP, HTTPS, and FTP...
Read more >
Proxies with Python 'Requests' module - Stack Overflow
proxies – (optional) Dictionary mapping protocol to the URL of the proxy. ... On linux you can also do this via the HTTP_PROXY...
Read more >
How to use proxies with Python Requests Proxy Module - Zyte
In this part, we're going to cover how to configure proxies in Requests. To get started we need a working proxy and a...
Read more >
How do I use a proxy server with Python Requests? - ReqBin
Another way to pass a proxy address to Python is to set the http_proxy and https_proxy environment variables. If you set environment variables, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found