[fpc-pascal] fpHttpClient and Https support ?

silvioprog silvioprog at gmail.com
Sat Mar 21 04:03:04 CET 2015


On Fri, Mar 20, 2015 at 11:54 PM, fredvs <fiens at hotmail.com> wrote:

> Hello.
>
> First of all, congratulation for fpHttpClient.pas.
> It works directly, like charms, without to install any dependencies. =>
> wow.
>
> I am able to do internet audio streaming with it, perfect. ;-)
>
> Hum, while trying to access Https sites, i get errors. ;-(
>
> In begin of fpHttpClient.pas, there is =>
>
> > Todo:
> >  * Https support.
>
> Could it be part of the problem ?
> Are there plan to enable Https support ?
>
> Thanks.
>
> Fre;D
>
> -----
> Many thanks ;-)


It is already implemented in trunk. So you just:

program project1;

{$mode objfpc}{$H+}

uses
  fphttpclient;

begin
  WriteLn(TFPHTTPClient.SimpleGet('https://www.google.com/humans.txt'));
end.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150321/24a26227/attachment.html>


More information about the fpc-pascal mailing list