http socks proxy

How can I provide http or socks proxy configuration to remotedb?

I am using remotedb and idhttp communication in parallel between client and server. For idhttp it is easy to accomplish but remotedb uses winhttp.

Any help is very appreciated.

Use TRemoteDBDatabase.OnHttpClientCreate to get access to the underlying THttpClient object that a performs the HTTP connections:

TRemoteDBHttpClientEvent = procedure(Sender: TObject; Client: THttpClient) of object;
RemoteDBDatabase.OnHttpClientCreate := HttpClientCreateHandler;

Then you can use any of these methods to configure the proxy: