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/

Reply via email to