Page 1 of 1

WebProxy() or similar to set a proxy for WebGadget and WebviewGadget

Posted: Mon Oct 21, 2024 11:02 am
by infratec
Like HTTPProxy() a possibility to set a proxy for WebGadget AND WebviewGadget is needed.

At the moment I have to use my own WebView2Gadget(), because we need a proxy top access a IPv4 only webpage from an IPv6 net.
But ... this works only in windows an not macOS or linux.

So a general solution is needed.

Re: WebProxy() or similar to set a proxy for WebGadget and WebviewGadget

Posted: Mon Oct 21, 2024 12:14 pm
by Fred
Yes, it's coming for the next version (only for WevViewGadget())

Re: WebProxy() or similar to set a proxy for WebGadget and WebviewGadget

Posted: Mon Oct 21, 2024 10:06 pm
by User_Russian
Fred wrote: Mon Oct 21, 2024 12:14 pmonly for WevViewGadget()
WevViewGadget for UI.
It is not clear why a proxy is needed?

Re: WebProxy() or similar to set a proxy for WebGadget and WebviewGadget

Posted: Mon Oct 21, 2024 11:14 pm
by idle
cant you do this with SetEnvironmentVariable for the process?

Code: Select all

proxy.s = "--proxy-server=" + Chr(34) + "192.0.0.1:8080" + Chr(34) 
SetEnvironmentVariable("WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS",proxy)


or would you need to set it in a console and then use runprogram?