HTTPS: Difference between revisions

524 bytes added ,  13 years ago
Added Delphi example
m (Retro: omit)
(Added Delphi example)
Line 87:
;; Use
(wget-drakma-stream "https://sourceforge.net")</lang>
 
=={{header|Delphi}}==
<lang Delphi>program ShowHTTPS;
 
{$APPTYPE CONSOLE}
 
uses IdHttp, IdSSLOpenSSL;
 
var
s: string;
lHTTP: TIdHTTP;
lIOHandler: TIdSSLIOHandlerSocketOpenSSL;
begin
ReportMemoryLeaksOnShutdown := True;
lHTTP := TIdHTTP.Create(nil);
lIOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
try
lHTTP.IOHandler := lIOHandler;
lHTTP.HandleRedirects := True;
s := lHTTP.Get('https://sourceforge.net/');
Writeln(s);
finally
lHTTP.Free;
lIOHandler.Free;
end;
end.</lang>
 
=={{header|Erlang}}==
Anonymous user