You can try HTTP_REFERER but it depends on several things (browser,
server, cgi-implementation etc.)

On Tue, Nov 24, 2009 at 12:13 PM, Vivek Khurana <[email protected]>wrote:

> On Tue, Nov 24, 2009 at 10:09 AM, Vivek Rajendran <[email protected]>
> 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
> > 10.0.0.12
> >
> >     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.
>
> regards
> Vivek
>
> --
> The hidden harmony is better than the obvious!!
> _______________________________________________
> BangPypers mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/bangpypers
>



-- 
Praveen Kumar
+91 9739854134
http://praveensunsetpoint.wordpress.com
Bangalore
_______________________________________________
BangPypers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to