Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

Welcome, Guest
Guest Settings

Thread: Delphi 10 Seattle DataSnap Client - Proxy server settings not working

This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Permlink Replies: 0
Jonathan Wareham

Posts: 5
Registered: 1/7/12
Delphi 10 Seattle DataSnap Client - Proxy server settings not working  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 7, 2017 6:29 AM
I'm connecting to a DataSnap server using a generated DS client proxy class, via TDSRESTConnection. The connection works fine and I can call the server methods. I now want to connect through a proxy server, so I am setting the properties on the TDSRESTConnection object, but I can see that nothing is being sent via the proxy server, as if the properties are being ignored. My code is as follows :
  myDS: TServerMethodsClient;
  DSRESTConnectionCfg.ProxyHost := 'localhost';
  DSRESTConnectionCfg.ProxyPort := 8888;
  myDS := TServerMethodsClient.Create(DSRESTConnectionCfg, False);

I have also tried setting :
DSRESTConnectionCfg.HTTP.ProxyParams.ProxyServer := 'localhost';
DSRESTConnectionCfg.HTTP.ProxyParams.ProxyPort := 8888;

Both have no effect. However I know this code is working in the previous version of Delphi I was using which is XE6. Problem seems to be in the move to Delphi 10 Seattle.

Can anybody shed any light on this?
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02