Antwise community forums
Is it possible to use a proxy in Antview? - Printable Version

+- Antwise community forums (https://forums.antwise.com)
+-- Forum: Antview (https://forums.antwise.com/forumdisplay.php?fid=11)
+--- Forum: Antview for Windows (https://forums.antwise.com/forumdisplay.php?fid=12)
+--- Thread: Is it possible to use a proxy in Antview? (/showthread.php?tid=113)



Is it possible to use a proxy in Antview? - MrPrzemek - 2022-04-20

Hi Wil.

Is it possible to use a proxy settings in AntView?

Popular proxy settings are using IP address to authentication so there is no need to set login and password.

I need set for example: --proxy-server=https://1.2.3.4:1234

Should I use EdgeWebBrowser.Settings?

Could you share an example in Visual Basic 6?


RE: Is it possible to use a proxy in Antview? - wila - 2022-04-20

Hi,

That would be via EnvironmentOptions which isn't currently exposed.
Via the AdditionalBrowserArguments property one can set chrome flags and one of those possible flags is for proxy settings.
I'm not sure if these specific chrome flags are even supported with WebView2.

Just had a quick look at github and it does look like it is indeed recommended to use the method above.
Microsoft is tracking their proxy support in feedback item #132

I will look into this after I release the beta.

Do you need proxy support on an application bases or per webview2 instance?
--
Wil


RE: Is it possible to use a proxy in Antview? - MrPrzemek - 2022-04-20

(2022-04-20, 13:42:36)wila Wrote: Hi,

That would be via EnvironmentOptions which isn't currently exposed.
Via the AdditionalBrowserArguments property one can set chrome flags and one of those possible flags is for proxy settings.
I'm not sure if these specific chrome flags are even supported with WebView2.

Just had a quick look at github and it does look like it is indeed recommended to use the method above.
Microsoft is tracking their proxy support in feedback item #132

I will look into this after I release the beta.

Do you need proxy support on an application bases or per webview2 instance?
--
Wil

I visit the site from my app. From time to time, I have to change my IP address.

It looks like the AntView-based browser and msedgewebview2.exe processes are closed when the visit ends. In addition, I delete the folder with the user data and renew the visit from a different IP


RE: Is it possible to use a proxy in Antview? - MrPrzemek - 2022-04-29

(2022-04-20, 13:42:36)wila Wrote: Hi,

That would be via EnvironmentOptions which isn't currently exposed.
Via the AdditionalBrowserArguments property one can set chrome flags and one of those possible flags is for proxy settings.
I'm not sure if these specific chrome flags are even supported with WebView2.

Just had a quick look at github and it does look like it is indeed recommended to use the method above.
Microsoft is tracking their proxy support in feedback item #132

I will look into this after I release the beta.

Do you need proxy support on an application bases or per webview2 instance?
--
Wil

Hi.

Is nny chance you can add support for additional arguments.
As they describe on the forums I would like to add AdditionalBrowserArguments = "--proxy-server=123.123.123.123:4321"

The ability to add custom parameters to the command line would greatly expand the applicability of Antview

Regards Przemek


RE: Is it possible to use a proxy in Antview? - wila - 2022-04-29

(2022-04-29, 08:01:02)MrPrzemek Wrote: Hi.

Is nny chance you can add support for additional arguments.
As they describe on the forums I would like to add AdditionalBrowserArguments = "--proxy-server=123.123.123.123:4321"

The ability to add custom parameters to the command line would greatly expand the applicability of Antview

Regards Przemek

Agreed.

That would be the correct way to handle this as it would open support for a lot of options and provide most freedom.
--
Wil


RE: Is it possible to use a proxy in Antview? - wila - 2022-05-05

Hi,

This was added for another request.
I'll send you a link to the private build.

--
Wil