HTTPRio.HTTPWebNode.OnBeforePost changed in Delphi 10.3, lost parameter Data

馋奶兔 提交于 2020-01-01 16:56:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!