Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Multiple proxies?

Post Reply
softtouch
Posts: 8
Joined: Tue Jan 14, 2020 8:28 am

Multiple proxies?

Post 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.
User avatar
salvadordf
Posts: 4563
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Multiple proxies?

Post 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.
Post Reply