[Lazarus] Lazarus make me create better apps

Michael Schnell mschnell at lumino.de
Fri May 7 14:06:19 CEST 2010


On 05/07/2010 01:29 PM, Razvan Adrian Bogdan wrote:
> Web programming in Lazarus/Delphi can be done in 3 ways:
> - Non persistent safe CGI,
AKA doing a Command Line tool: Hard to debug with Lazarus.
> - Persistent building a module/plugin (not safe), or using FastCGI,
> SCGI or a small HTTP server behind a bigger one,
A built-in HTTP server is nice for testing (EXTP provides this).

FastCGI (communicating with pipes or TCPIP sockets with the WebServer)
of course is the most "Linux standard" ways

I don't know about SCGI.

With Windows/IIS you additional have ISAPI. Here the SCI-program needs
to be a DLL.

A colleague of mine did the ISAPI thing with Delphi, doing just a
miniature DLL that communicates with some message system with a free
running program that does the real work. Now this program can be
debugged in the normal way. Something like this can be used to convert
ISAPI or standard CGI to FastCGI.
> i would probably try the HTTP backend (proxy) server behind the real
> server because FastCGI has poor support (very old apache module) and
> SCGI doesn't seem too well known.
Would you route the "normal" traffic between the clients and the web
server though your program ?

-Michael




More information about the Lazarus mailing list