AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke DelphiXE8 and WSDL, disable authentication via Smart Card Reader
Thema durchsuchen
Ansicht
Themen-Optionen

DelphiXE8 and WSDL, disable authentication via Smart Card Reader

Ein Thema von carmeloconny · begonnen am 20. Okt 2019 · letzter Beitrag vom 12. Dez 2019
Antwort Antwort
Seite 2 von 2     12   
carmeloconny

Registriert seit: 20. Okt 2019
9 Beiträge
 
#11

AW: DelphiXE8 and WSDL, disable authentication via Smart Card Reader

  Alt 30. Nov 2019, 11:29
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:
   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()));
with
Code:
   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()));
this doesn't work,error "handle is invalid".
how can I use WinHttp with HttpRio?
  Mit Zitat antworten Zitat
carmeloconny

Registriert seit: 20. Okt 2019
9 Beiträge
 
#12

AW: DelphiXE8 and WSDL, disable authentication via Smart Card Reader

  Alt 12. Dez 2019, 08:33
I solved it by calling the onWinInetError event of the HttpRio component.
Thanks to all, maybe the solution can serve others.
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:53 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