[Lazarus] fpWeb Apache2 Windows

Joost van der Sluis joost at cnoc.nl
Tue May 25 18:54:55 CEST 2010


On Tue, 2010-05-25 at 12:35 -0300, Leonardo M. Ramé wrote:
> 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.

Thought so. Please try with fpc 2.4.0.

Joost.





More information about the Lazarus mailing list