title: WIndows succeeding, Android failing second attempts to connect with Server Certificate Invalid or not present error
body: <p>Using C++Builder, I need to create a small app that gets some info from a PHP file on a remote site.</p>
  <p>I have a <code>TRESTClient</code>, <code>TRESTRequest</code> and <code>TRESTResponse</code> that are properly setup.</p>
  <p>Compiled under Windows 32-bit, I can repeatedly execute the function below and get data back.</p>
  <p>However, compiled for Android 32-bit, the code below works ONLY the first time, returning data from the server. Any subsequent button clicks to reenter the function causes a generated error:</p>
  <blockquote>
  <p>Server Certificate Invalid or not present</p>
  </blockquote>
  <p>There is a related post at <a href="https://stackoverflow.com/questions/69615816/">Server certificate Invalid or Not present</a>, but it is of no help.</p>
  <p>So, on Windows, this simple code works fine, again and again, but works only once on Android before failing.</p>
  <pre class="lang-cpp prettyprint-override"><code>void __fastcall TForm1::Button1Click(TObject *Sender)
  {
      RESTRequest1-&gt;Resource = &quot;&quot;;
      RESTRequest1-&gt;Method = TRESTRequestMethod::rmPOST;
      RESTRequest1-&gt;Response = RESTResponse1;
      RESTRequest1-&gt;Response-&gt;ContentType = &quot;application/json&quot;;
      RESTRequest1-&gt;Response-&gt;ContentEncoding=&quot;UTF-8&quot;;
      RESTRequest1-&gt;Execute();
      
      Memo1-&gt;Lines-&gt;Add(RESTResponse1-&gt;Content);
  </code></pre>
  <p>Not sure how to get around this error.</p>