There is excellent library HttpToSocks5Proxy which allows easy use of Socks proxy server in .NET requests, but it also has additional functionality - creates internal HTTP proxy server, which can be used during application working. For example, we have a Socks proxy:
username:[email protected]:1234
When we pass it to HttpToSocks5Proxy, it creates HTTP proxy, e.g. (127.0.0.1:54321) (port is random), it doesn't require credentials and passes all traffic through initial Socks5 proxy.
I would like to ask how to make similar functionality but for HTTP proxy with credentials. In other words, if we have an HTTP proxy
username:[email protected]:2345
our code creates internal proxy (127.0.0.1:54321) without credentials and passes all traffic through initial HTTP proxy.
I found some examples, but only for Socks proxy. I'm using .NET Framework 4.7.2.