Found a not-so-nice way to solve my problem: in nsapi.c, i added HTTP_myvars in the nsapi_headers[].
This is annoying as the HTTP_* variables are generated by the web agent and can have any name!
Is there a way to retrieve these "generic" HTTP vars ?
If not, maybe "someone" will have to build a module that emulate the http() function of the perl CGI.