TWebClientConnection always uses GET

When setting up a TWebClientConnection for use with a TWebClientDataSet, the Command property is ignored.

This makes it impossible to retrieve data from endpoints which require POST (e.g. additional request Parameters are needed ).

This happens in

core source/WEBlib.CDS (TWebClientDataProxy.DoGetData)
 1280:'GET', URL, true);

Also, TWebClientConnection.SetupRequest isn't prepared to add content from Postdata..

We've investigated this and seen the issue with the DataProxy.
We've adapted this and can confirm the next update will address this and will use TWebClientConnection.Command and TWebClientConnection.PostData

1 Like

That's great. In the meantime, im generating the POST using TWebHttpRequest and fill the CDS by parsing the response.