I'm having trouble doing my Delphi application using the HTTPS protocol. 

Below is a piece of code I'm using:
    IniFile := TIniFile.Create('.\wrclnbi.ini');
    SslContext := TSslContext.Create(SslContext);
    HttpsCli := TSslHttpCli.Create(HttpsCli);
    HttpsCli.URL := Trim(IniFile.ReadString('URL', 'BaseHttps', ''));
    HttpsCli.Proxy := '';
    HttpsCli.NoCache := True;
    HttpsCli.Accept := 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, */*';
    HttpsCli.AcceptLanguage := 'en-us';
    HttpsCli.ContentTypePost := 'application/x-www-form-urlencoded';
    HttpsCli.Agent := 'Eversystems/1.0 (compatible; MSIE 6.0; Windows NT 5.1; 
    HttpsCli.Connection := 'keep-alive';
    HttpsCli.Cookie := 'JSESSIONID=' + Trim(IniFile.ReadString('Cookies', 
    HttpsCli.SendStream := TMemoryStream.Create;
    HttpsCli.SendStream.Write(Data[1], Length(Data));
    HttpsCli.SendStream.Seek(0, 0);
    HttpsCli.RcvdStream := TMemoryStream.Create;
After the HttpsCli.Post I get the following error: SSL requires a context 
I will be grateful if you could help me. 

Thank you very much.
Fernando de Carvalho Gomes
São Paulo - Brazil.
Conheça os novos produtos Windows Live! Clique aqui.
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to