chromiumoxide icon indicating copy to clipboard operation
chromiumoxide copied to clipboard

Any solution equivalent to NodeJS proxy-chain?

Open webhype opened this issue 1 year ago • 2 comments

The Problem

Chromium command-line args do not allow passing proxy authentication, so trying to connect via a password-authenticated proxy in the wild is impossible without further hackery.

So this works:

chromium --proxy-server http://127.0.0.1:3128

This does NOT work:

chromium --proxy-server http://myuser:[email protected]:45678

This article explains the problem in depth: https://blog.apify.com/how-to-make-headless-chrome-and-puppeteer-use-a-proxy-server-with-authentication-249a21a79212/

The NodeJS Solution

https://github.com/apify/proxy-chain/

In a nutshell, during the lifetime of the anonymized proxy object, opens an anonymous (open) proxy on 127.0.0.1 on a random port and it forwards all requests on to the authenticated HTTP proxy on the open Internet.

Does a similar Rust package exist that makes using an authenticated proxy easy with chromiumoxide?

webhype avatar Nov 30 '24 13:11 webhype

I am wondering the same question🧐

ilittlebig avatar Dec 11 '24 19:12 ilittlebig

There is not, it would be a good addition sister crate but I dont have time to code this. If this is important for you please send a PR.

Sytten avatar Nov 24 '25 18:11 Sytten