Autor Beitrag
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Fr 01.02.08 11:11 
Hallo,

ich rufe aus meiner Anwendung ein paar Daten per https von einem Anbieter ab. Das funktioniert auch problemlos.
Wenn ich diese Anfrage aber durch einen Proxy leiten möchte bekomme ich immer die Meldung 'Connection Closed Gracefully.'. Ein ungesicherte HTTP Anfrage geht problemlos auch durch den Proxy.

Muss ich etwas besonderes bei https Anfragen beachten? Oder ist das ein Bug in den Indy 10 Komponenten?

Hier noch die wesentlichen Schritte die ich durchführe:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
  {...} 
  http: TIdHTTP;
  IdSSLIOHandlerSocketOpenSSL1: TIdSSLIOHandlerSocketOpenSSL;
  {...}
  http.ProxyParams.ProxyServer := ed_Proxy.Text;
  http.ProxyParams.ProxyPort := sed_pPort.Value;
  http.ProxyParams.ProxyUsername := ed_puser.Text;
  http.ProxyParams.ProxyPassword := ed_ppas.Text;
  http.ProxyParams.BasicAuthentication := cb_BasAu.Checked;
  http.IOHandler := IdSSLIOHandlerSocketOpenSSL1;
  http.Get(ed_url.Text, Res);


Gruß
Klabautermann