softtouch 9 Posted April 27, 2022 I need to use the TEdgeBrowser/WebView2 with Delphi 11.1, and I have to use different proxies based on the url I want to access. I cannot find any example or description about how to use proxies with the TEdgeBrowser. I cant use the system proxy settings, thats important. Does anybody has a clue? Share this post Link to post
Fr0sT.Brutal 900 Posted April 28, 2022 I doubt it's possible. Neither Chrome can do this nor all Chromium clones I know (like Opera) Share this post Link to post
salvadordf 32 Posted April 28, 2022 The WebView2 API doesn't have any interface to use custom proxy settings but you can use the Chromium command line switches. If you use TEdgeBrowser then you will have to create an ICoreWebView2EnvironmentOptions instance with those switches and pass it as a parameter in CreateCoreWebView2EnvironmentWithOptions. However, if you decide to use WebView4Delphi then all this is already implemented and you only have to set the GlobalWebView2Loader.ProxySettings properties. At this time, any WebView2 wrapper will only allow you to set the proxy settings once. If your application needs to change the proxy settings multiple times at run-time then you need to use CEF4Delphi. Share this post Link to post
salvadordf 32 Posted April 28, 2022 22 minutes ago, Fr0sT.Brutal said: I doubt it's possible. Neither Chrome can do this nor all Chromium clones I know (like Opera) Sorry for the shameless promotion but BriskBard allows you to set any proxy. 2 Share this post Link to post
Fr0sT.Brutal 900 Posted April 28, 2022 6 hours ago, salvadordf said: Sorry for the shameless promotion but BriskBard allows you to set any proxy. Really impressive, you seem to revive all-in-one approach of good old Opera! 1 Share this post Link to post
softtouch 9 Posted May 2, 2022 I use now cef4delphi, and this allows me to set a proxy, so my issue is resolved with hits. Share this post Link to post