<div dir="ltr"><div style>Hello,</div><div style><br></div><div style>There are plans to TFPHttpClient implement support to HTTPS? (If yes, I will be one step closer to abandoning Synapse :) )</div><div><br></div><div>I'm trying this:</div>
<div><br></div><div>program project1;</div><div><br></div><div>{$mode objfpc}{$H+}</div><div><br></div><div>uses</div><div> fphttpclient;</div><div><br></div><div>var</div><div> Http: TFPHTTPClient;</div><div>begin</div>
<div> Http := TFPHTTPClient.Create(nil);</div><div> try</div><div> Write(Http.Get('<a href="https://raw.github.com/silvioprog/brookframework/master/CONTRIBUTORS.txt')">https://raw.github.com/silvioprog/brookframework/master/CONTRIBUTORS.txt')</a>);</div>
<div> finally</div><div> Http.Free;</div><div> end;</div><div>end.</div><div><br></div><div>But the result is:</div><div><br></div><div>C:\Users\silvioprog\Desktop\fphttpclient_tests>project1.exe</div><div>An unhandled exception occurred at $004114F1:</div>
<div>EHTTPClient: Invalid protocol : "https"</div><div> $004114F1 TFPCUSTOMHTTPCLIENT__DOMETHOD, line 743 of C:/lazarus/fpc/2.7.1/so</div><div>urce/packages/fcl-web/src/base/fphttpclient.pp</div><div> $004117B8 TFPCUSTOMHTTPCLIENT__GET, line 776 of C:/lazarus/fpc/2.7.1/source/</div>
<div>packages/fcl-web/src/base/fphttpclient.pp</div><div> $0041180E TFPCUSTOMHTTPCLIENT__GET, line 806 of C:/lazarus/fpc/2.7.1/source/</div><div>packages/fcl-web/src/base/fphttpclient.pp</div><div> $00401675 main, line 13 of project1.lpr</div>
<div><br></div>-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div>