[BangPypers] How to retrieve current URL in CGI scripting

Vivek Khurana hiddenharmony at gmail.com
Thu Nov 26 15:51:59 CET 2009


On Thu, Nov 26, 2009 at 7:45 PM, Vivek Rajendran <vivekbest86 at yahoo.com> wrote:
>
> Hi,
>    A doubt again...
>    I have looked into apache.py file inside
> /usr/lib/python2.3/site-packages/... path and they have a method
> build_cgi_env(req)
>
>    If we invoke this function it gives a dict of env variables.
>    But I don't know how to invoke this function ? with that 'req' argument.

 import apache
 env = apache.build_cgi_env(req)

 req will be the request object.

regards
Vivek

-- 
The hidden harmony is better than the obvious!!


More information about the BangPypers mailing list