Output of your script: /usr/share/mini-httpd/html/cgi-bin/envtest.lua
Seems it is returning the full path, are you expecting relative? It seems the CGI spec saya it should be relative. Tim -----Original Message----- From: kepler-project-boun...@lists.luaforge.net [mailto:kepler-project-boun...@lists.luaforge.net] On Behalf Of Fabio Mascarenhas Sent: Tuesday, December 07, 2010 11:33 AM To: Kepler Project mailing list Subject: Re: [Kepler-Project] WSAPI Not setting env variables On Tue, Dec 7, 2010 at 2:22 PM, McClure, Timothy J UTCFS <tim.mccl...@fs.utc.com> wrote: > I am trying to use WSAPI on top of mini-httpd and for some reason the > CGI env variables are nil in the script. However I tested with a perl > script above mini-httpd and obtained the following: > > > > SERVER_NAME --> localhost > > REMOTE_ADDR --> ::1 > > LD_LIBRARY_PATH --> /usr/local/lib:/usr/lib > > SERVER_PROTOCOL --> HTTP/1.0 > > REQUEST_METHOD --> GET > > SCRIPT_FILENAME --> /usr/share/mini-httpd/html/cgi-bin/perlenv.perl This is *VERY* odd, and probably what is tripping up WSAPI... > PATH --> /usr/local/bin:/usr/ucb:/bin:/usr/bin > > GATEWAY_INTERFACE --> CGI/1.1 > > SERVER_SOFTWARE --> mini_httpd/1.19 19dec2003 > > HTTP_HOST --> localhost > > HTTP_USER_AGENT --> Mozilla/5.0 (X11; U; Linux i686; en-US; > rv:1.9.2.10) > Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10 > > SERVER_PORT --> 80 Please try this (non-wsapi) script: ----- #!/usr/bin/env lua print("Content-type: text/plain\n\n") print(os.getenv("SCRIPT_FILENAME")) ----- -- Fabio Mascarenhas _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/ _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/
_______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/