fcl-web/fpWeb -- cannot invoke different actions lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- tudi_x · 2014-03-23 00:41 Hi All, I am trying to set multiple actions on a CGI app without success - only one action is triggered according to the setting in the OnRequest property of the object (looks like properties defined in actions are not considered). Please advise what I am not doing right. Basically regardless of how I am calling the action, the default OnRequest action is triggered. http://localhost:8080/cgi-bin/test01.cgi/customers/Read http://localhost:8080/cgi-bin/test01.cgi/customers/Hour If the OnRequest action is left unpopulated there is an error in the response from the web server. Attached please find the code and screen captures from Object Inspector. Environment: OS: Windows XP 32 bits Lazarus 1.2 Apache 2.0.65.200 fpweb\weblaz.lpk - 0.0 Thank you, ---------------------------------------------------------------------- BigChimp · 2014-04-09 12:28 I'm not an expert on fpweb at all but am still working on a RESTful server. I've got Code: [Select]  Application.AllowDefaultModule:=false; //all URLs must include the module name (image, document..)   { If there is only 1 element in the URL, like the "something" in     http://localhost/cgi-bin/something     treat it as a module by setting PreferModuleName.     Otherwise it would have been treated like an action.   }   Application.PreferModuleName:=true; and then use various modules like this Code: [Select]initialization   // This registration will handle http://server/cgi- bin/tigercgi/image/*   RegisterHTTPModule('image', TFPWebimage); end. and Code: [Select]initialization   // This registration will handle http://server/cgi- bin/tigercgi/document/*   RegisterHTTPModule('document', TFPWebdocument); end. I basically do everything in code in those modules See the tigercgi.lpr project in my papertiger project (repository via link below)