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:

http://www.tmssoftware.biz/business/sparkle/doc/web/proxy-configuration-on-windows.html
https://www.tmssoftware.com/site/forum/forum_posts.asp?TID=7608&PID=29766&title=sparkle-http-client-connect-through-proxy-server#29766

Thanks.