AW: DelphiXE8 and WSDL, disable authentication via Smart Card Reader
Excuse my absence for all those who helped me.
The problem has not been resolved. looking for a solution on the internet, I realized that I have to use WinHttp instead of WinINet. WinHttp should not display dialogs, which is what I want. I tried to replace, in HTTPRIOHTTPWebNode1BeforePost:
Code:
with
auth := 'Authorization: Basic ' + TNetEncoding.Base64.Encode(FUserName + ':' + FPassword);
if not HttpAddRequestHeaders(Data, PChar(auth), Length(auth), HTTP_ADDREQ_FLAG_ADD) then ShowMessage('HttpAddRequestHeaders' + SysErrorMessage(GetLastError()));
Code:
this doesn't work,error "handle is invalid".
auth := 'Authorization: Basic ' + TNetEncoding.Base64.Encode(FUserName + ':' + FPassword);
if not WinHttpAddRequestHeaders(Data, PChar(auth), Length(auth), WinHTTP_ADDREQ_FLAG_ADD) then ShowMessage('WinHttpAddRequestHeaders: ' + SysErrorMessage(GetLastError())); how can I use WinHttp with HttpRio? |
AW: DelphiXE8 and WSDL, disable authentication via Smart Card Reader
I solved :-D it by calling the onWinInetError event of the HttpRio component.
Thanks to all, maybe the solution can serve others. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:50 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz