问题
I have a component that uses HTTPRio.HTTPWebNode.OnBeforePost
that previously used the data
parameter, but in version 10.3 of Delphi this parameter was replaced.
Before Delphi 10.3:
procedure TNotaBlu.BeforePostHTTPRequest(const HTTPReqResp: THTTPReqResp; Client: THTTPClient);
var
Certificado: ICertificate2;
CertContext: ICertContext;
PCertContext: Pointer;
begin
try
Certificado := VCertificadoDigital.GetCertificate.DefaultInterface;
CertContext := Certificado as ICertContext;
CertContext.Get_CertContext(Integer(PCertContext));
if (not InternetSetOption(Data, INTERNET_OPTION_CLIENT_CERT_CONTEXT, PCertContext, 100)) then
In this code, I use internetsetoption
, how should I proceed now in Delphi 10.3? How to get the data
parameter?
来源:https://stackoverflow.com/questions/56737356/httprio-httpwebnode-onbeforepost-changed-in-delphi-10-3-lost-parameter-data