[BangPypers] How to retrieve current URL in CGI scripting

Vivek Rajendran vivekbest86 at yahoo.com
Thu Nov 26 15:15:34 CET 2009

    A doubt again...
    I have looked into apache.py file inside
/usr/lib/python2.3/site-packages/... path and they have a method
    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.
Can anyone please help me?

Vivek R

Vivek Khurana-2 wrote:
> On Tue, Nov 24, 2009 at 10:09 AM, Vivek Rajendran <vivekbest86 at yahoo.com>
> wrote:
>> Hi,
>>     I would like to know how to get the current url inside the cgi script
>> where I'm using it.
>> For Ex:
>>     I'm having index.py in location /var/www/html/foobar/ in server with
>> IP
>>     When I retrive this page from browser, I want to know the current URL
>> as ""
>  You can find this information in HTTP headers.
> regards
> Vivek
> -- 
> The hidden harmony is better than the obvious!!
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers

View this message in context: http://old.nabble.com/How-to-retrieve-current-URL-in-CGI-scripting-tp26490399p26530049.html
Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com.

More information about the BangPypers mailing list