even zoeken op de fout die je kreeg bij idHTTP.Get had je waarschijnlijk al naar de oplossing geholpen.
Anyweg:
Code:
program Project6;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils, System.Classes, IdHTTP, IdGlobal, IdSSLOpenSSL;
var
http: TIdHTTP;
ResponseBody: String;
begin
http := TIdHTTP.Create();
try
http.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
ResponseBody := http.Get('https://api.histograph.io/search?q=Coriovallum');
WriteLn(ResponseBody);
finally
http.Free();
end;
Readln;
ReportMemoryLeaksOnShutdown := True;
end.
Bookmarks