Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
20
Task/HTTPS/Delphi/https.delphi
Normal file
20
Task/HTTPS/Delphi/https.delphi
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
program ShowHTTPS;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
|
||||
uses IdHttp, IdSSLOpenSSL;
|
||||
|
||||
var
|
||||
s: string;
|
||||
lHTTP: TIdHTTP;
|
||||
begin
|
||||
lHTTP := TIdHTTP.Create(nil);
|
||||
try
|
||||
lHTTP.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(lHTTP);
|
||||
lHTTP.HandleRedirects := True;
|
||||
s := lHTTP.Get('https://sourceforge.net/');
|
||||
Writeln(s);
|
||||
finally
|
||||
lHTTP.Free;
|
||||
end;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue