Recent

Author Topic: CGI Application and LazWeb  (Read 12761 times)

goupil

  • Newbie
  • Posts: 2
CGI Application and LazWeb
« on: March 24, 2009, 04:29:45 pm »
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

  • Full Member
  • ***
  • Posts: 171
Re: CGI Application and LazWeb
« Reply #1 on: March 24, 2009, 09:49:15 pm »
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).
« Last Edit: March 25, 2009, 03:02:23 am by bobo »

goupil

  • Newbie
  • Posts: 2
Re: CGI Application and LazWeb
« Reply #2 on: March 25, 2009, 01:34:02 pm »
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

  • Full Member
  • ***
  • Posts: 171
Re: CGI Application and LazWeb
« Reply #3 on: March 26, 2009, 02:36:20 am »
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
« Last Edit: March 26, 2009, 03:26:48 am by bobo »

 

TinyPortal © 2005-2018