Google Groups Home
Help | Sign in
Message from discussion Questions about cherrypy.request.object_path
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Robert Brewer  
View profile
 More options Jul 7 2006, 5:05 pm
From: "Robert Brewer" <fuman...@amor.org>
Date: Fri, 7 Jul 2006 14:05:38 -0700
Local: Fri, Jul 7 2006 5:05 pm
Subject: RE: [cherrypy-users] Questions about cherrypy.request.object_path

pytrade wrote:
> I'm using cherrypy.request.object_path to get the current url
> (including after an internal redirect). The problem is that it just
> shows the url and not the variables

> 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

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
fuman...@amor.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google