Is there already a way to set a proxy for each request?
I need to access varioud websites, but each with another proxy.
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.
Multiple proxies?
- salvadordf
- Posts: 4563
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Multiple proxies?
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.
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.