A.M. Hoornweg 144 Posted May 22, 2019 Hello all, I'm trying to port an older (Delphi XE) SOAP client application to Delphi Rio. I'm stumbling upon a breaking change in THTTPReqResp, which is used by tHTTPRio. The signature of the event THTTPReqResp.OnBeforePost has changed completely. Formerly the signature was: TBeforePostEvent = procedure (CONST HTTPReqResp: THTTPReqResp; Data: Pointer); My routine does some manipulation of the http headers, for example it calls wininet.HTTPAddRequestHeaders(Data, ...) to allow gzip encoding and wininet.InternetSetOption(Data,....) to accept an invalid/self-signed SSL certificate. The new signature of the event has become: TBeforePostEvent = procedure(const HTTPReqResp: THTTPReqResp; Client: THTTPClient) of object; and now I'm stumped. How can I achieve the same as before? I want to accept gzip encoded data and I want to accept self signed SSL certificates. Kind regards, Arthur Share this post Link to post
Marek Lieder 0 Posted May 22, 2019 Client.CustomHeaders['xxxx'] := 'yyyy'; Share this post Link to post
Dmitry Arefiev 101 Posted May 23, 2019 The upcoming 10.3.2 Update will address all above issues. They are really reported in JIRA. Stay tuned ... Share this post Link to post
A.M. Hoornweg 144 Posted May 23, 2019 ... anxiously awaiting 10.3.2 .... Share this post Link to post
Tchinny 0 Posted October 7, 2019 Hello, I have the similar problem like A.M.H. has, just from 10.2 to 10.3. I update last week to 10.3.2 and the problem is still there... Any idea how to solve it? Thx Tchinny Share this post Link to post
A.M. Hoornweg 144 Posted December 10, 2019 <bump> any news here? I still haven't got a clue how to achieve this in Delphi Rio. Share this post Link to post
Dmitry Arefiev 101 Posted December 11, 2019 @A.M. Hoornweg, did you checked THttpClient API ? accept gzip encoded data: set THttpClient.AutomaticDecompression to [THTTPCompressionMethod.GZip] accept an invalid/self-signed SSL certificate: set THttpClient.OnValidateServerCertificate to event handler which optionally can analyze Certificate and set Accepted to True / False 1 Share this post Link to post