[BangPypers] How to retrieve current URL in CGI scripting
hiddenharmony at gmail.com
Tue Nov 24 07:43:24 CET 2009
On Tue, Nov 24, 2009 at 10:09 AM, Vivek Rajendran <vivekbest86 at yahoo.com> wrote:
> 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 "http://10.0.0.12/foobar/"
You can find this information in HTTP headers.
The hidden harmony is better than the obvious!!
More information about the BangPypers