CGI Application and LazWeb lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- goupil · 2009-03-24 15:29 Hello, I try to write a CGI Application using LazWeb, but I can't find any help on LazWeb. I can make a small cgi app with a default action, but I don't see anywhere how to define action (TFPWebAction) and how to trigger them. Does anyone know where to find a documentation about LazWeb, and PageProducers? Thanks. ---------------------------------------------------------------------- bobo · 2009-03-24 20:49 There were some discussions in this regard on the forum. This thread might help a little, though it is a little long http://forum.lazarus.freepascal.org/index.php/topic,6361.0.html You can start reading backward from the end (2nd page) Example programs are included there as a zip file (they need the patches included there in another zip). ---------------------------------------------------------------------- goupil · 2009-03-25 12:34 Thank you very much, that is exactly what I was looking for. I just add a note about using TFPWebAction :  the URL to trigger an action seems to be of the form http://www.server.com/cgi- bin/myfpcgi.exe/WebModuleName/ActionName?param1=value1 like noticed in the bur report here : http://bugs.freepascal.org/view.php?id=12094 ---------------------------------------------------------------------- bobo · 2009-03-26 01:36 If you use the fcl-web files included in that thread (a zip file -> fcl-web-fixes.zip ), the actions will work like in Delphi: http://www.server.com/cgi-bin/myfpcgi.exe/ActionName?param1=value1