#565 fastcgi:getenv returns nil

lisp error
open
John Hinsdale
modules (18)
5
2010-09-05
2010-09-03
Anonymous
No

Hi,

I am running the following:

* Windows 7 x64
* Cygwin: 6.1
* CLISP: 2.48 (installed via cygwin)
* lighttpd: 1.4.20 (installed via cygwin)

I copied the code from: http://clisp.cons.org/impnotes/fastcgi.html#fcgi-example into a file named c:\temp\myfcgi.fcgi. I changed the #! line of the sample code to point to /usr/bin/clisp -q -K full because that's where my clisp is installed.

I added the following in my lighttpd config file:

fastcgi.server = ( ".fcgi" =>
( "localhost" =>
(
"host" => "127.0.0.1",
"port" => 9000,
"bin-path" => "c:/temp/myfcgi.fcgi"
)
)
)

When I access: http://localhost:8090/myfcgi.fcgi I get the following output in my browser:

I am running in mode: FastCGI
This is execution no.: 1
The browser string is ''

I would expect to see something in the tick marks after the browser string text.

I have tried substituting all other environment variables listed on: http://www.cgi101.com/class/ch3/text.html for "HTTP_USER_AGENT" and only "PATH" yields any output (and the output appears to be correct).

Could this have anything to do with Cygwin's line ending setting?

Thanks.

Discussion

  • Sam Steingold
    Sam Steingold
    2010-09-05

    • milestone: --> lisp error
    • assigned_to: haible --> hin