IP Address Function
Tim Roberts
timr at probo.com
Thu Jul 9 22:52:58 EDT 2009
Fred Atkinson <fatkinson at mishmash.com> wrote:
>
>I wonder why they don't just have a function to return it instead of
>putting you through all of that?
In CGI, EVERYTHING gets communicated through environment variables. That
(and the stdin stream) is really the only option, since you get a new
process for every request.
The Python CGI module doesn't provide a wrapper function because this
information is just not useful. Most corporate users sit behind proxies,
so everyone at the company appears to come from the same IP.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list