Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-01

TFPHTTPClient: HTTPS support.

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

silvioprog

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.freepascal.org/pipermail/lazarus/attachments/20130122/1ec7b791/attachment-0001.html>

Reply by email

Michael Van Canneyt
to silvioprog
silvioprog wrote
Hello, There are plans to TFPHttpClient implement support to HTTPS? (If yes, I will be one step closer to abandoning Synapse :) )

Originally not.

But then I started needing it myself, so: yes there are plans.

But do not expect this the nearest months, unless you implement it yourself.

Michael.

Reply by email

waldo kitty
to silvioprog: There are plans to TFPHttpClient implement support to HTTPS? (If yes, I will be one step…
silvioprog wrote
Hello, There are plans to TFPHttpClient implement support to HTTPS? (If yes, I will be one step closer to abandoning Synapse :) )

this is why i went to synapse for one of my projects... that then also required work to get it working for my chosen platform (os/2)... that work was done by another and submitted back to the synapse team... i hope to get a chance to get back to my project soon...

thanks again tomas hajny! :)

Reply by email