Did You mean this code in Web.hx (haxe
v.2.05 /usr/share/haxe/neko/Web.hx lines 348-356)?
==========================
} else {
var a0 = untyped __dollar__loader.args[0];
if( a0 != null ) a0 = new String(a0);
_set_main = function(f) { };
_get_host_name = function() { return untyped
"localhost".__s; }; _get_client_ip = function() { return untyped
"127.0.0.1".__s; }; _get_uri = function() {
return untyped (if( a0 == null ) "/"
else a0).__s; };

Yes

I can't see a params parse code here but it seems to work for
nekoserver and not to work with lighttpd. (I mean GET).

var a0 = untyped __dollar__loader.args[0];
_get_params = function() {
        var l = null;
        if( a0 == null )
                return null;
        for( p in a0.split(";") ) {
                var k = p.split("=");
                if( k.length == 2 )
                        l = untyped [k[0].__s,k[1].__s,l];
        }
        return l;
};

Maybe we should also split with "&".

I guess you should write a different implementation of neko.Web that works for CGI, since the communication protocol is quite different here.

Nicolas




--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to