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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Proxy ?

Post Reply
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Proxy ?

Post by thefunkyjoint »

Hello,

Is it possible to configure CEF4 to use a proxy ?

Thanks
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Proxy ?

Post by salvadordf »

Yes, you can configure a proxy with these properties :
  • TChromium.ProxyType
  • TChromium.ProxyScheme
  • TChromium.ProxyServer
  • TChromium.ProxyPort
  • TChromium.ProxyUsername
  • TChromium.ProxyPassword
  • TChromium.ProxyScriptURL
  • TChromium.ProxyByPassList
Read this to know how to set those properties correctly :
https://www.chromium.org/administrators ... st-3#Proxy

The MiniBrowser demo has all the code you need. Click the upper-right button and select the Preferences option.
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Re: Proxy ?

Post by thefunkyjoint »

Thank you ! :D
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Re: Proxy ?

Post by thefunkyjoint »

Hello,

After i set all proxy properties, do i need to restart my app or only a call to TChromiu.UpdatePreferences is enough ?
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Proxy ?

Post by salvadordf »

If you want to update the browser preferences as soon as possible then call TChromium.UpdatePreferences but even if you don't call UpdatePreferences the browser will update them the next time you load a web page.
Post Reply