On Wed, Apr 6, 2011 at 10:38 AM, Thijs Koerselman <thijskoersel...@gmail.com> wrote: > > Resurrecting this old thread. I am able to access these variables when a > HTTP request is made to the server. For an application I'm writing I would > need the SERVER_NAME and SERVER_PORT variables on startup. So when my web > app is created by Orbit, I would like to have these variables available > without having to get a HTTP request first. Is this kind of thing possible? > I guess the app could call itself, but is that the only way to get to its > own port and server name?
It isn't... not least because a single application might be handling requests from different virtual hosts and different ports, any web server that WSAPI supports can run in this configuration. You are going to have to manually add these things to your application, or read them from a config file (which you can write on the first request if it does not exist, if you want to automate the creation of this file). > Cheers, > Thijs -- 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/