Hmmm, go away for two days and a mail storm erupts. :-(
I may never be able to catch up and digest this mail thread, but I'll
try and add a few comments of my own.
On 01/12/2005, at 8:41 AM, Nicolas Lehuen wrote:
c) We don't have a req.base_uri (to follow Jim's naming suggestion)
or
Gregory (Grisha) Trubetskoy writes:
I think a properly designed site should insist on its host name, i.e. I
see you think I'm gobbledygook.bleh, but I'm going to redirect you to
http://www.modpython.org/ because that is my true name. This is very
common with sites that respond to both
Jim Gallacher wrote:
Gregory (Grisha) Trubetskoy wrote:
I don't know what the specific issue is with parsed_uri, if this is a
mod_python bug it should just be fixed BUT if this is an issue with
httpd, I don't think we should cover the problem up by having
mod_python fix it. Since we are
Nicolas Lehuen wrote:
Hi,
Is it me or is it quite tiresome to get the URL that called us, or get
the complete URL that would call another function ?
When performing an external redirect (using mod_python.util.redirect for
example), we MUST (as per RFC) provide a full URL, not a relative
On Tue, 29 Nov 2005, Nicolas Lehuen wrote:
def current_url(req):
[snip]
# host
current_url.append(req.hostname)
[snip]
This part isn't going to work reliably if you are not using virtual hosts
and just bind to an IP number. Deciphering the URL is an impossible task -
I used to
Daniel J. Popowich wrote:
Jim Gallacher writes:
Nicolas Lehuen wrote:
Second question, if there isn't any simpler way to do this, should we
add it to mod_python ? Either as a function like above in
mod_python.util, or as a member of the request object (named something
like url to match the
Gregory (Grisha) Trubetskoy wrote:
On Tue, 29 Nov 2005, Jim Gallacher wrote:
Daniel J. Popowich wrote:
Here, here!! I've wanted parsed_uri to work as expected for quite
some time...I'm actually in a position where I could devote some time
to tracking this down. If apache doesn't provide
Gregory (Grisha) Trubetskoy writes:
On Tue, 29 Nov 2005, Nicolas Lehuen wrote:
If I understand you correctly, req.hostname is not reliable in case where
virtual hosting is not used. What about server.server_hostname, which seems
to be used by the code from mod_rewrite you posted below ?
Daniel J. Popowich wrote:
By the Host header. I've been looking into this issue tonight and
think I have the answers (but it's really late, so I'll save the gory
details for tomorrow). In brief: typically, req.hostname is set from
the Host header and, in fact, when I telnet to apache and issue