> On Wed, 2010-11-03 at 09:37 -0200, Fabio Mascarenhas wrote:
> > web.vars is a reference to the WSAPI environment, so you are going to
> > find all CGI environment variables and HTTP headers there.
> >
> > CGI variables:
> >
> > http://www.cgi101.com/book/ch3/text.html
> >
> > HTTP headers (Cache-Control becomes HTTP_CACHE_CONTROL, for example):
> >
> > http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Requests (under
> Request)
>
>
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?

Cheers,
Thijs
_______________________________________________
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