Problem:
Currently Proxify cant handle multiple upstream proxies at once. For example, running
proxify -http-proxy http://127.0.0.1:8080 -http-proxy http://127.0.0.1:8081 -addr 127.0.0.1:8888 curl https://google.com -x 127.0.0.1:8888
This will forward the request to last http-proxy provided via the command line. So in the above example, the curl would only use http://127.0.0.1:8081 as the upstream proxy.
Suggested result:
Ideally when specifying multiple upstream proxies, Proxify should forward the request to both proxies and subsequently forward both responses back to the client.
Once this is implemented, another feature or cli argument can be created to specify how many requests to forward to one proxy, before switching to the other. The use case for this could be a proxy rotator that round-robins the requests based on a user provider integer. For example, adding a --count/-c argument.
In this hypothetical example, proxfiy would forward one http request to one proxy before switching to the next proxy (optionally it could read from a file of http-proxies).
proxify -http-proxy http://127.0.0.1:8080 -http-proxy http://127.0.0.1:8081 -addr 127.0.0.1:8888 -c 1
curl https://google.com -x 127.0.0.1:8888 >> forwards request to http://127.0.0.1:8081
curl https://google.com -x 127.0.0.1:8888 >> forwards request to http://127.0.0.1:8080
curl https://google.com -x 127.0.0.1:8888 >> forwards request to http://127.0.0.1:8081
and so on.
Problem:
Currently Proxify cant handle multiple upstream proxies at once. For example, running
proxify -http-proxy http://127.0.0.1:8080 -http-proxy http://127.0.0.1:8081 -addr 127.0.0.1:8888 curl https://google.com -x 127.0.0.1:8888This will forward the request to last http-proxy provided via the command line. So in the above example, the curl would only use
http://127.0.0.1:8081as the upstream proxy.Suggested result:
Ideally when specifying multiple upstream proxies, Proxify should forward the request to both proxies and subsequently forward both responses back to the client.
Once this is implemented, another feature or cli argument can be created to specify how many requests to forward to one proxy, before switching to the other. The use case for this could be a proxy rotator that round-robins the requests based on a user provider integer. For example, adding a --count/-c argument.
In this hypothetical example, proxfiy would forward one http request to one proxy before switching to the next proxy (optionally it could read from a file of http-proxies).
proxify -http-proxy http://127.0.0.1:8080 -http-proxy http://127.0.0.1:8081 -addr 127.0.0.1:8888 -c 1curl https://google.com -x 127.0.0.1:8888>> forwards request to http://127.0.0.1:8081curl https://google.com -x 127.0.0.1:8888>> forwards request to http://127.0.0.1:8080curl https://google.com -x 127.0.0.1:8888>> forwards request to http://127.0.0.1:8081and so on.