Autor Beitrag
Hendrik
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Di 21.06.16 08:56 
Hallo zusammen,

ist euch etwas bekannt, ob in der IdHTTP-Komponente ein Bug hinsichtlich der Proxy-Authentifikation besteht?

Ich habe alle denkbaren wege ausprobiert, erhalte aber immer die Meldung "authentication required".

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
IdHTTP1.ProxyParams. BasicAuthentication: = true;
IdHTTP1.ProxyParams. ProxyServer: = ' proxyserver ';
IdHTTP1.ProxyParams. ProxyPort: = 8080;
IdHTTP1.ProxyParams. ProxyUsername: = ' proxyuser ';
IdHTTP1.ProxyParams. ProxyPassword: = ' proxypwd ';


Hat jemand von euch auch schonmal damit gekämpft?
Frühlingsrolle
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 21.06.16 14:50 
- Nachträglich durch die Entwickler-Ecke gelöscht -
Hendrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Mo 27.06.16 13:25 
Leider nein, auch dort gibt es den gleichen Fehler.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6386
Erhaltene Danke: 146

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 27.06.16 13:46 
user profile iconHendrik hat folgendes geschrieben Zum zitierten Posting springen:
Ich habe alle denkbaren wege ausprobiert, erhalte aber immer die Meldung "authentication required".

Klingt für mich so, als würdest du den Connect machen, bevor du die Authentifizierungsparameter setzt. Es wird ja nicht geschrieben, dass Authentifizierung fehlgeschlagen ist, sondern, dass überhaupt erstmal eine erforderlich ist.
baumina
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 305
Erhaltene Danke: 61

Win 7
Delphi 10.2 Tokyo Enterprise
BeitragVerfasst: Mo 27.06.16 14:10 
Vielleicht hats nichts mit dem Proxy zu tun, sondern mit der Authentifizierung des Requests.
Hendrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Mi 27.07.16 15:44 
Ich verstehe es so, dass Indy die Authentifizierung in der Komponente automatisch verarbeitet. Oder muss ich hier für das Ereignis OnProxyAuthorization zusätzlich noch etwas verarbeiten?
baumina
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 305
Erhaltene Danke: 61

Win 7
Delphi 10.2 Tokyo Enterprise
BeitragVerfasst: Mi 27.07.16 16:19 
Ich wollte dich auf TIdHTTP.Request lenken. Dort gibst u.a. die Authentifizierung für den Host mit Username und Passwort an, evtl lief ja deine Authentifizierung durch den Proxy schon lange durch und du scheiterst an der Host-Authentifizierung.