bombardier icon indicating copy to clipboard operation
bombardier copied to clipboard

add proxy support

Open antonioua opened this issue 3 years ago • 7 comments

Add proxy support for http client

antonioua avatar Mar 05 '22 20:03 antonioua

Does this support username+password? Also this is HTTP proxy only?

vans163 avatar Mar 07 '22 15:03 vans163

this proxy is for http client only, doesn't support username/pass but I can try to add it @vans163 .

antonioua avatar Mar 07 '22 16:03 antonioua

@antonioua can we use SOCKS5 proxy as well? not exactly sure if used http client would work with them

pasha-i avatar Mar 07 '22 19:03 pasha-i

yep, tested socks5 and http - both works.

docker network create tor
docker run --rm -tid --name mytor --network tor -p 9050:9050 -p 8118:8118 -e LOCATION=US dperson/torproxy
docker run -ti --rm --network tor -e BOMBARDIER_PROXY="socks5://mytor:9050" xdesigns/bombardier:0.0.1 -c 1000 -d 10s -l -m GET https://httpbin.org/get

antonioua avatar Mar 07 '22 19:03 antonioua

saw another PR https://github.com/codesenberg/bombardier/compare/master...mariotrucco:78-add-proxy-support for proxy support, that one assumes it can only be a http proxy, but otherwise looks reasonable as well

pasha-i avatar Mar 07 '22 19:03 pasha-i

this proxy is for http client only, doesn't support username/pass but I can try to add it @vans163 .

Yea I think its important to have user/pass auth for both http and socks5 proxy as most paid proxies use that. Free/open/tor proxies dont but those are very few.

Note: HTTP Auth can be done like http://username:[email protected]:9050/

vans163 avatar Mar 07 '22 23:03 vans163

added proxy http/socks5 support for both http and fasthttp clients

antonioua avatar Mar 11 '22 17:03 antonioua