[Lazarus] TFPHTTPClient: HTTPS support.

silvioprog silvioprog at gmail.com
Tue Jan 22 18:34:14 CET 2013


Hello,

There are plans to TFPHttpClient implement support to HTTPS? (If yes, I
will be one step closer to abandoning Synapse :) )

I'm trying this:

program project1;

{$mode objfpc}{$H+}

uses
  fphttpclient;

var
  Http: TFPHTTPClient;
begin
  Http := TFPHTTPClient.Create(nil);
  try
  Write(Http.Get('
https://raw.github.com/silvioprog/brookframework/master/CONTRIBUTORS.txt'));
  finally
    Http.Free;
  end;
end.

But the result is:

C:\Users\silvioprog\Desktop\fphttpclient_tests>project1.exe
An unhandled exception occurred at $004114F1:
EHTTPClient: Invalid protocol : "https"
  $004114F1  TFPCUSTOMHTTPCLIENT__DOMETHOD,  line 743 of
C:/lazarus/fpc/2.7.1/so
urce/packages/fcl-web/src/base/fphttpclient.pp
  $004117B8  TFPCUSTOMHTTPCLIENT__GET,  line 776 of
C:/lazarus/fpc/2.7.1/source/
packages/fcl-web/src/base/fphttpclient.pp
  $0041180E  TFPCUSTOMHTTPCLIENT__GET,  line 806 of
C:/lazarus/fpc/2.7.1/source/
packages/fcl-web/src/base/fphttpclient.pp
  $00401675  main,  line 13 of project1.lpr

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130122/1ec7b791/attachment-0002.html>


More information about the Lazarus mailing list