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

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
infratec
Always Here
Always Here
Posts: 7618
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

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

Post 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.
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

Yes, it's coming for the next version (only for WevViewGadget())
User_Russian
Addict
Addict
Posts: 1535
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

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

Post 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?
User avatar
idle
Always Here
Always Here
Posts: 5897
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

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

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