• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2284
  • Last Modified:

TIdSSLIOHandlerSocketOpenSSL

Hi,

  I need an example for TIdSSLIOHandlerSocketOpenSSL. please any one can provide.

thanks
0
sbondalapati
Asked:
sbondalapati
1 Solution
 
BdLmCommented:
you need indy 9 or indey 10 sample code ???
0
 
sbondalapatiAuthor Commented:
i need it in Indy 10
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Ephraim WangoyaCommented:

Here is an example downloading an image from a secure web site
uses
  idSSLOpenSSLHeaders;

procedure TForm3.Button1Click(Sender: TObject);
var
 FileName: String;
 SSLIOHandler: TIdSSLIOHandlerSocketOpenSSL;
 fs: TFileStream;
begin
  FileName:='tops.gif';
  SSLIOHandler:= TIdSSLIOHandlerSocketOpenSSL.Create;
  try
     SSLIOHandler.SSLOptions.Method := sslvSSLv2;
     SSLIOHandler.SSLOptions.Mode := sslmClient;
     IdHTTP1.IOHandler:= SSLIOHandler;
     FileName := IncludeTrailingPathDelimiter(ExtractFileDir(Application.ExeName)) + FileName;
     fs := TFileStream.Create(FileName, fmCreate);
     IdHTTP1.Get('https://nas.immigration.gov.tw/nasf/images/tops.gif' , fs);
  finally
    fs.Free;
    SSLIOHandler.Free;
  end;
end;

Open in new window

0
 
Ephraim WangoyaCommented:

Here is a sample program of how to send email using SSL

http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_26528266.html
0
 
sbondalapatiAuthor Commented:
Nice work
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now