Well, in that case, the internal direction is just what I need. Thank
you so much for help.
--
http://mail.python.org/mailman/listinfo/python-list
Sullivan WxPyQtKinter wrote:
1. Are there any method (in python of course) to redirect to a web page
without causing a Back button trap... rather than the redirection page
with a Location: url head
What's wrong with the redirection page?
If there's really a necessary reason for not using an
Just read the name of the server (os.environ['SERVER_NAME']) to work
out what absolute URL to redirect to, whist still being portable.
Here's some code I dug up that should also cope with non-default ports
and SSL, if that's of any use:
ssl= os.environ.get('HTTPS', 'off') not in ('',
[EMAIL PROTECTED] enlightened us with:
What's wrong with the redirection page?
If there's really a necessary reason for not using an HTTP redirect
(for example, needing to set a cookie, which doesn't work
cross-browser on redirects), the best bet is a page containing a
plain link and
Sullivan WxPyQtKinter enlightened us with:
Sorry I do not quite understand what is the difference between an
internal redirection and an external one?
External:
- Browser requests URL A
- Server responds Go to URL B
- Browser requests URL B
- Server responds with contents of B
I am now programming python scripts for CGI environment. The
redirection has been discussed in this forum for over one hundred
times. I have seen most of them, but still have some questions:
1. Are there any method (in python of course) to redirect to a web page
without causing a Back button
Sullivan WxPyQtKinter enlightened us with:
1. Are there any method (in python of course) to redirect to a web
page without causing a Back button trap(ie, when user click the
back button on their web browser, they are redirect to their current
page, while their hope is probably to go back to
Sullivan WxPyQtKinter wrote:
1. Are there any method (in python of course) to redirect to a web page
without causing a Back button trap(ie, when user click the back
button on their web browser, they are redirect to their current page,
while their hope is probably to go back to the last page
Dennis Lee Bieber enlightened us with:
I suspect the desired function may be browser specific, since it
sounds like one would need to pop a history record to remove the
redirect page from the list...
That's only if you think from the browser's point of view. An internal
redirect goes unnoticed