Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi: EmbeddedWB weird proxy error?

This is my Form1.FormCreate code:

    GoodWB:=TEmbeddedWB.Create(Form1);
    TWinControl(GoodWB).Name :='NetPartBmb';
    TWinControl(GoodWB).Parent := Form1;
    GoodWB.SetBounds(0,50,300,300);
    //GoodWB.ProxySettings.SetProxy('','83.137.53.190:8080','<local>');
    //GoodWB.ProxySettings.AutoLoadProxy:=true;
    GoodWB.Navigate('www.google.com');

EmbeddedWB performs weirdly. When I try to load a page it throws an error like if I was not online.
But if I uncomment those proxy settings (The proxy 83.137.53.190:8080 is a fully functionating proxy btw) then it works, but with that proxy. It seems like it uses some unknown proxy.

How can I disable the proxy and work with my own IP?

BTW: This wasn't happening before and I have also been setting proxies with it before but then I have removed all the proxy code parts so I have no idea what is causing this when there are no codes for proxy settings.

like image 514
SmRndGuy Avatar asked Jun 20 '26 09:06

SmRndGuy


1 Answers

I don't know how TEmbeddedWB works, but in TWebBrowser you have to pass a full URL to Navigate(), not just the hostname by itself:

GoodWB.Navigate('http://www.google.com'); 

If you want to connect to an IP address instead of a hostname, you still would need to specify the protocol scheme:

GoodWB.Navigate('http://TheIPHere'); 
like image 103
Remy Lebeau Avatar answered Jun 23 '26 11:06

Remy Lebeau



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!