Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -1,26 +0,0 @@
|
|||
program ShowHTTPSAuthenticated;
|
||||
|
||||
{$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.Request.Username := 'USERNAME';
|
||||
lHTTP.Request.Password := 'PASSWD';
|
||||
lHTTP.IOHandler := lIOHandler;
|
||||
lHTTP.HandleRedirects := True;
|
||||
s := lHTTP.Get('https://SomeSecureSite.net/');
|
||||
Writeln(s);
|
||||
finally
|
||||
lHTTP.Free;
|
||||
lIOHandler.Free;
|
||||
end;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue