[Lazarus] fpWeb Apache2 Windows

Joost van der Sluis joost at cnoc.nl
Tue May 25 12:45:43 CEST 2010


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.





More information about the Lazarus mailing list