For instance:
If the current url after an internal redirect is:
http://domain/servlet/action.py?customerId=100
cherrypy.request.object_path just shows:
http://domain/servlet/action.py
How can I get the entire url after an internal redirect:
http://domain/servlet/action.py?customerId=100
Thanks,
Vineet
How can I get the entire url after an internal redirect:
http://domain/servlet/action.py?customerId=100
request.browser_url should do the trick for "before the redirect". But I
can't figure how "URL after an InternalRedirect" has any meaning, since
you're not telling the client anyway. If you want to notify the client
of a redirected URL, use HTTPRedirect; that's exactly what it's for.
Robert Brewer
System Architect
Amor Ministries
fuma...@amor.org
I'll try and give you an example. On each page I have a resize option
which will adjust the page size based on your browser. Similar to what
yahoo has. This javascript function sets the appropriate value in the
user session and redisplays the current page. The url for the current
page is retrieved now by doing (thanks to Christian's suggestion)
cherrypy.request.object_path+"?"+cherrypy.request.query_string