Page 1 of 1

Multiple proxies?

Posted: Tue Sep 06, 2022 8:32 am
by softtouch
Is there already a way to set a proxy for each request?
I need to access varioud websites, but each with another proxy.

Re: Multiple proxies?

Posted: Tue Sep 06, 2022 11:15 am
by salvadordf
Hi,

At this moment the WebView2 API doesn't have a method to change the proxy settings at runtime but other developers requested this feature :
https://github.com/MicrosoftEdge/WebView2Feedback/issues/132

If you need to use different proxy servers I would execute a small app with an WebView2 browser several times. Each process would have its own proxy settings and communicate with the parent application using IPC messages, websockets, files, data bases, pipes, etc.

If you really need to make multiple requests with different proxy settings in one application then consider using CEF4Delphi instead.