Autor Beitrag
DerNetteNachbar
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 224



BeitragVerfasst: Di 23.12.08 12:16 
Grüsse euch,
wie der Titel schon sagst baue ich eine Verbindung zu einem Server der mit HTTPS Protokol arbeitet. Nun das Problem ist jetzt das die SOAP Nachricht eben keine Authentifizierung enthält und ich die Authentifizierung mit dem Basic Authentication Protokol (RFC 2617) machen soll. Es wäre nett wenn irgendeiner von euch klugen Köpfen mir einen Tipp bzw. Sample Code geben könnte wie man vor der eigentlichen Übertragung den Benutzernamen + Passwort senden kann.
Übrigens ist es eine ganz normale Message die vor dem Aufrufen der Seite kommt.

Mein Code bis dato:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.IdHTTP1Authorization(Sender: TObject;
  Authentication: TIdAuthentication; var Handled: Boolean);
begin
Authentication.Username := '';//UserName
Authentication.Password := '';//PassWort
end;


liebe Grüsse

Nachbar
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 23.12.08 13:56 
Handled mal noch auf True setzen ...

Und ansonsten: HTTPS ist einfach nur ein HTTP was durch einen SSL-Tunnel getunnelt wird.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
DerNetteNachbar Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 224



BeitragVerfasst: Di 23.12.08 13:58 
Ich danke, klappt ganz hervorragend, kann auch Username,Passwort setzen.