Hmm, I know what the problem can be, the server may not be setting the SCRIPT_NAME variable correctly, and this is breaking WSAPI. Each web server seems to have its own ideas on how the CGI protocol should operate... I will need to install and test mini-httpd to do a proper fix (one that won't break other servers), but if you comment lines 422 and 423 in wsapi/common.lua:
--- filename = adjust_non_wrapped(wsapi_env, filename, launcher) filename = adjust_iis_path(wsapi_env, filename) --- It should start working with mini-httpd. -- Fabio Mascarenhas On Wed, Dec 8, 2010 at 1:23 PM, McClure, Timothy J UTCFS <tim.mccl...@fs.utc.com> wrote: > I ran the script: > > > > #!/usr/bin/env lua > > print("Content-type: text/plain\n\n") > > print("PARAMS: ", (...) or "none") > > > > and the following was displayed: > > PARAMS: none > > > > > > However I ran the other script you gave me: > > #!/usr/bin/perl > > print "Content-type: text/html\n\n"; > > foreach $key (keys %ENV) { > > > > print "$key --> $ENV{$key}<br>"; > > > > } > > > > And produces the following output: > > 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 > > 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 > > > > > > Does this mean mini-httpd is not setting the http request correctly? > > > > Thx > > _______________________________________________ > 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/