Recent

Author Topic: Are there any highly functional web server suites available for FPC (Free Pascal  (Read 1414 times)

saragt5t

  • Guest
Is there a robust HTTP-HTTPS suite available for FPC on Linux? I've spent a week trying to get it to work without any progress.

Indy for Delphi, along with an SSL patch for OpenSSL 1.1/3.0, works perfectly. However, all attempts to make it work with FPC or Lazarus have failed. Whether using code from my Delphi package or OPM code, everything stalls at content encoding conversion, with iconv returning no bytes.
The same issue occurs with Synapse, where unicode symbols in the response are returned incorrectly.

I'm nostalgic for the days of good old Kylix code...
« Last Edit: July 18, 2024, 09:35:50 am by marcov »

paweld

  • Hero Member
  • *****
  • Posts: 1268
Indy, mORMot2, FPHttpServer - each of them works on both Linux and Windows without any problems, each of them supports OpenSSL (indy only 1.02 - out of the box, fphttpserver only 1.1 for FPC 3.2.2 - in FPC fixes and trunk also 3.0, mORMot: 1.1., 3.0, 3.1) and none of them has problems with UTF-8.
A simple example is attached
Best regards / Pozdrawiam
paweld

Thaddy

  • Hero Member
  • *****
  • Posts: 16199
  • Censorship about opinions does not belong here.
You do not need to convert anything for UTF8 web-support. Only in very rare cases.
Also, openssl3 can also be used with 3.2.2 as long as you copy over the sourcecode from main/trunk. No coding involved.
« Last Edit: July 14, 2024, 10:51:59 am by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

zen010101

  • Newbie
  • Posts: 4
Indy, mORMot2, FPHttpServer - each of them works on both Linux and Windows without any problems, each of them supports OpenSSL (indy only 1.02 - out of the box, fphttpserver only 1.1 for FPC 3.2.2 - in FPC fixes and trunk also 3.0, mORMot: 1.1., 3.0, 3.1) and none of them has problems with UTF-8.
A simple example is attached

Great job!

I have a little question: Indy and mORMot work well but when fphs.Active := True, the program gets stuck, and the next statement cannot be executed: Writeln('FpHttpServer start on port 8083');

 

TinyPortal © 2005-2018