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.

Leonardo.

----- Mensaje original -----
Fecha:    Sun, 23 May 2010 11:12:51 +0200 (CEST)
De:       "Michael Van Canneyt" <[email protected]>
Para:     "Lazarus mailing list" <[email protected]>
Asunto:   Re: [Lazarus] fpWeb Apache2 Windows

 On Sat, 22 May 2010, Leonardo Rame wrote:  > Hi, I'm trying to do some tests 
of fpWeb on Windows Seven 64bits using Apache2 (32bits). The first test I did 
was compiling the HelloWorld sample from c:lazaruscomponentsfpweb 
demohelloworldcgi and trying to execute it, but it doesn't work (500 Internal 
server error). > > This is what my Apache's logs in error.log file: > > [Sat 
May 22 17:12:34 2010] [notice] Child 996: Child process is running > [Sat May 
22 17:12:34 2010] [notice] Child 996: Acquired the start mutex. > [Sat May 22 
17:12:34 2010] [notice] Child 996: Starting 64 worker threads. > [Sat May 22 
17:12:34 2010] [notice] Child 996: Starting thread to listen on port 8080. > 
[Sat May 22 17:21:37 2010] [error] [client 127.0.0.1] malformed header from 
script. Bad header=  $0000000100015385: helloworld.exe > > Any hint?  Can you 
execute the module in a minimal test environment (not apache) ? (you need at 
least REQUEST_METHOD QUERY_STRING and PATH_INFO environment variables)  I have 
a test-cgi application ready, but still need to put it in Subversion. (it sets 
up a minimal CGI environment, and then executes the CGI application - easier to 
debug)  Michael.  -- _______________________________________________ Lazarus 
mailing list [email protected] 
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to