title: How to use HTTPS in Delphi 10.3 with INDY
body: <p>Hi everybody and all Programmers out there,</p>
  <p>at the moment I want to figure out, how to use a HTTPS request (POST) with Delphi.
  I have this piece of code:</p>
  <pre><code>uses ..., IdHTTP, IdSSLOpenSSL;
  
  ....
  
  procedure TForm2.Button4Click(Sender: TObject);
  var
    PostStrings    :TStringList;
    ResponseStream :TStringStream;
    ausgabe        :String;
    zeile          :String;
    i              :Integer;
    s              :array of string;
    Strings        :TStringList;
    Stream         :TStringStream;
  
  begin
    Stream  := TStringStream.Create('');
    Strings := TStringList.Create;
    try
      Strings.Add('Noone='+Edit1.Text);
      Strings.Add('Foo='+Edit2.Text);
  
      IdHTTP1 := TIdHTTP.Create(nil);
  
      try
        IdHTTP1.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(IdHTTP1);
        IdHTTP1.HandleRedirects := True;
        idHTTP1.Post('https://api.mysitefortest.de/postit.php', Strings,stream);
        ausgabe := Stream.DataString; 
        zeile := ''; 
  
        for i:=1 to Length(ausgabe) do begin
          if (ausgabe[i]=#13) and (ausgabe[i+1]=#10) then begin
            ResponseMemo.Lines.Add(zeile);
            zeile:='';
          end else if s[i]&lt;&gt;#10 Then zeile:=zeile+ausgabe[i];
        end;
        ResponseMemo.Lines.Add(zeile);
      except 
       on E: Exception do
         showmessage('Error encountered during POST: ' + E.Message);
      end;
    finally
      Strings.Free;
      Stream.Free;
    end;
  end;
  
  </code></pre>
  <p>The php file:</p>
  <pre><code>&lt;?php
  echo 'Noone: '.$zitatArray[&quot;Noone&quot;]; 
  echo Chr(13).Chr(10); 
  echo 'Foo: '.$zitatArray[&quot;Foo&quot;];
  
  ?&gt;
  </code></pre>
  <p>The error comes up, if I press the sendpost button. It says, the ssl.-library cant be loaded.</p>
  <p>MMhhh - it seems a secret how to use ssl with indy. I've searched google but I don't find some clear example.
  I think I need a library for the ssl. But which one? How to use it in my Delphi? Where to get it?</p>
  <p>Hope someone can help and explain it - also for other programmers to solve this issue??</p>
  <p>Thanks</p>
  <p>(sorry if my code is not clear - I´m still learning ;))</p>