Hi,
We are trying to migrate our project fromRemoting SDK 6.0.0.862 to Remoting SDK 10.0.0.1449 . Now everything is working fine except when we try to hit a Get API it returns status:500 (invalid path) we haven’t changed anything in our code while migrating.
Hi,
As I shifted my code to OnCustomResponseEvent. Since, there are no OnCustomResponseEvent.txt (3.4 KB) ARequestInfo : TIdHTTPRequestInfo and AResponseInfo : TIdHTTPResponseInfo
which I was using. How can we include these in this method?
you can’t get raw Indy objects because class that holds them are placed to implementation section.
almost all request info can be received via aTransport or (aTransport as IROHTTPRequest) interfaces
all response info can be set via aResponse interface aRequestStream, aResponseStream - incoming/outcoming streams aHandled - should be set to True if you processed request.
for getting HTTP method (POST, GET, etc) you can use
(aTransport as IROHTTPRequest).GetMethod
for checking headers (ARequestInfo.RawHeaders.Values['accept'])