Discussion:
[fpc-pascal] FPC-based http/s server
Mr Bee via fpc-pascal
2018-12-10 10:33:06 UTC
Permalink
Hi all,
Is there any open source, maintained and updated HTTP server using FPC out there? I need a lightweight HTTP server written in FPC that supports Linux/Unix, F/CGI app, and HTTPS. It'd be better if it doesn't need external or third-party units such as Indy or Synapse, but only pure FPC standard units such as fpHTTP* and fpWeb* units.
Google only gave me some old (back to early 2000) and abandoned projects written in Delphi mixed with inline assembler and Windows' API, also don't support HTTPS.
Thank you.
Regards,
–Mr Bee
Michael Van Canneyt
2018-12-10 11:08:48 UTC
Permalink
Hi all, Is there any open source, maintained and updated HTTP server using
FPC out there? I need a lightweight HTTP server written in FPC that
supports Linux/Unix, F/CGI app, and HTTPS. It'd be better if it doesn't
need external or third-party units such as Indy or Synapse, but only pure
FPC standard units such as fpHTTP* and fpWeb* units. Google only gave me
some old (back to early 2000) and abandoned projects written in Delphi
mixed with inline assembler and Windows' API, also don't support HTTPS.
FPC has a HTTP server. See the simpleserver demo under fcl-web.

It does not support https yet, but this is planned for the near future.
(I expect to work on it between this Christmas and new year)

It does not support forwarding requests to (F)CGI but this is easy enough to
add.

Michael.
Alexander Grotewohl
2018-12-10 23:37:14 UTC
Permalink
Mr. Bee, you could use stunnel in the meantime, and look into
implementing fcgi into simpleserver? :)

What's your objective? Small servers like mini_httpd can be made to run
freepascal binaries with little fuss, and would be sufficient for
everything up until professional usage. At which point I would advise
using apache or nginx anyways.

Michael, neat, didn't know that was in there. Will have to check it out.

Alex
Post by Michael Van Canneyt
Hi all, Is there any open source, maintained and updated HTTP server using
FPC out there?  I need a lightweight HTTP server written in FPC that
supports Linux/Unix, F/CGI app, and HTTPS.  It'd be better if it doesn't
need external or third-party units such as Indy or Synapse, but only pure
FPC standard units such as fpHTTP* and fpWeb* units.  Google only
gave me
some old (back to early 2000) and abandoned projects written in Delphi
mixed with inline assembler and Windows' API, also don't support HTTPS.
FPC has a HTTP server. See the simpleserver demo under fcl-web.
It does not support https yet, but this is planned for the near future.
(I expect to work on it between this Christmas and new year)
It does not support forwarding requests to (F)CGI but this is easy enough to
add.
Michael.
_______________________________________________
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Loading...