Entwickler-Ecke

Internet / Netzwerk - Http Authentifizierung it IdHTTP


FriFra - Mo 30.09.02 02:46
Titel: Http Authentifizierung it IdHTTP
:evil: Ich habe seit Delphi7 plötzlich ein Problem mit IdHttp...

Quelltext
1:
2:
3:
4:
5:
6:
7:
...
IdHTTP1.Request.Username := 'test';
IdHTTP1.Request.Password := 'geheim';
IdHTTP1.Host := 'MyServer';
IdHTTP1.Port := 80;
IdHTTP1.Get('/index.htm',MyStream);
...


Das Problem an der Sache ist nun, dass weder Userneme noch Passwort am Server "ankommen", weshalb die Verbindung abgelehnt wird. Mit dem Internet Explorer funktioniert der Zugriff auf die entspr. Seite.


M4EiB - Mo 30.09.02 08:34

füge mal das noch ein

Quelltext
1:
IdHTTP1.Request.BasicAuthentication := true;                    


FriFra - Mo 30.09.02 09:24

BasicAuthentication ist bereits True. Ausserdem bekomme ich immer eine HTTP1.1 /401 Fehlermeldung, egal ob bei Protocol 1_0 oder 1_1 ausgewählt ist...