Page 3 of 5

Re: How to set proxy settings ... especially tor network

Posted: Fri Jan 26, 2018 4:56 pm
by snoop
Sure I call UpdatePreferences
Just tested that demo project with proxy addition
Unfortunately same results and 407 error! Both with shared and not settings
I also tried to set proxy after creating browser and with update. No result
Please buy a proxy and test it, it costs nothing for just one
Or you can contact me to get a proxy if you want

UPD: its not even getting to doOnGetAuthCredentials! I tried breakpoint

Re: How to set proxy settings ... especially tor network

Posted: Fri Jan 26, 2018 5:11 pm
by salvadordf
snoop wrote: Fri Jan 26, 2018 4:56 pm Sure I call UpdatePreferences
Just tested that demo project with proxy addition
Unfortunately same results and 407 error! Both with shared and not settings
I also tried to set proxy after creating browser and with update. No result
Please buy a proxy and test it, it costs nothing for just one
Or you can contact me to get a proxy if you want

UPD: its not even getting to doOnGetAuthCredentials! I tried breakpoint
Send me the details for that proxy server in a private message.

Have you tried to use Chrome or Chromium with that proxy?

Re: How to set proxy settings ... especially tor network

Posted: Fri Jan 26, 2018 5:54 pm
by snoop
sent pm with proxy
Please read all my messages carefully. Proxy is 100% working
It works on main form, on other forms after clearing cache or some re-entering proxy, it worked everywhere on previous CEF builds

Re: How to set proxy settings ... especially tor network

Posted: Fri Jan 26, 2018 6:15 pm
by salvadordf
I just uploaded a quick fix to create the request handler even when you don't use any of its events.
Please, download CEF4Delphi again and try it in you app.

Re: How to set proxy settings ... especially tor network

Posted: Fri Jan 26, 2018 10:13 pm
by snoop
Thank you! Finally it works! Also small question: How to force to load site without loading it from cache? To load newest version

Re: How to set proxy settings ... especially tor network

Posted: Sat Jan 27, 2018 8:22 am
by salvadordf
You can use TChromium.ReloadIgnoreCache; to reload ignoring the cache or you can modify the HTTP headers to append :

Code: Select all

Cache-Control: no-cache, no-store
You can append a custom header by setting the TChromium.CustomHeaderName and TChromium.CustomHeaderValue properties or by using the TChromium.OnBeforeResourceLoad event.

Re: How to set proxy settings ... especially tor network

Posted: Mon Feb 12, 2018 10:27 am
by snoop
Hello again, Salvador. Do you remember my old request about different proxies in 2 browsers? Different proxies, but same other context (cookie,cache,etc)... I still need this feature a lot. Can I do it now somehow?

Re: How to set proxy settings ... especially tor network

Posted: Mon Feb 12, 2018 11:33 am
by salvadordf
As I commented in this thread, that's how CEF3 works and I can't do anything about it :
https://www.briskbard.com/forum/viewtop ... rt=10#p754

If you need that feature you can request it in the CEF3 project website :
https://bitbucket.org/chromiumembedded/cef

Proxy...

Posted: Mon Feb 12, 2018 6:37 pm
by xpert13
Hello, everyone.

I did the same thing but I didn't get even errors. The pages load in the same way as usual. Proxy settings is ignoring;

Code: Select all

FChromium := TChromium.Create(Sender);

FChromium.ProxyType := CEF_PROXYTYPE_FIXED_SERVERS;
FChromium.ProxyScheme := psSOCKS5;
FChromium.ProxyServer := '189.102.74.134';
FChromium.ProxyPort := 33601;
FChromium.ProxyUsername := '';
FChromium.ProxyPassword := '';  

FChromium.DefaultUrl := 'http://myip.ru/';
FChromium.CreateBrowser(Sender);

Re: How to set proxy settings ... especially tor network

Posted: Tue Feb 13, 2018 5:30 pm
by xpert13
I found the solution. It was need to add UpdatePreferences after CreateBrowser