El mar, 25-05-2010 a las 12:45 +0200, Joost van der Sluis escribió: > On Sun, 2010-05-23 at 23:13 -0300, Leonardo Rame wrote: > > Hi Michael, thanks for replying. > > > > I created a basic example called 'cgiproject1' consisting of only an > > TFPWebModule's OnRequest method like this, with no action: > > > > procedure TFPWebModule1.DataModuleRequest(Sender: TObject; ARequest: > > TRequest; > > AResponse: TResponse; var Handled: Boolean); > > begin > > AResponse.Content := 'Hello'; > > Handled := True; > > end; > > > > Without environment vars, the result is this: > > > > exception at 000000010003B5DC: > > No REQUEST_METHOD passed from server. > > > > If I set the environment var REQUEST_METHOD using "set > > REQUEST_METHOD=POST", or "GET", the result is this: > > > > An unhandled exception occurred at $000000010001FC05 : > > EWriteError : Stream write error > > $000000010001FC05 > > $0000000100034C77 > > $0000000100037D54 > > $0000000100033DCA > > $00000001000015DE main, line 13 of giproject1.lpr > > > > It doesn't matter if I set QUERY_STRING and PATH_INFO, the result is > > the same. > > Should work, which version of fpc are you using? And you are really > creating a cgi-app, not a f(ast)cgi one? > > Joost.
I'm using 2.5.1 from trunk, and yes, I'm creating a CGI Application. I'll come back to debugging this in a couple of weeks. -- Leonardo M. Ramé Griensu S.A. - Medical IT Córdoba Tel.: 0351-4247979 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
