How to get hands on url with hash?
Is it possible (or even intended, did'nt read any RFCs regarding this) to retreive any url like http://www.example.com/index_html#hash (<- note: hash!) from the request? I need this for a login-redirect, the user clicks on a link like the one above and zope needs authentication (done by CookieCrumbler). I store the referrer in field called came_from where I can redirect (CookieCrumbler does this) the browser to after login. What do you think? Jürgen
Jürgen R. Plasser schrieb:
Is it possible (or even intended, did'nt read any RFCs regarding this) to retreive any url like http://www.example.com/index_html#hash (<- note: hash!) from the request?
I need this for a login-redirect, the user clicks on a link like the one above and zope needs authentication (done by CookieCrumbler). I store the referrer in field called came_from where I can redirect (CookieCrumbler does this) the browser to after login.
What do you think?
Its impossible. Everything from # is only handled by the browser and never sent to the server. Even inline-auth wont probably help. Regards Tino
On 1/3/06, "Jürgen R. Plasser" <plasser@hexagon.at> wrote:
Is it possible (or even intended, did'nt read any RFCs regarding this) to retreive any url like http://www.example.com/index_html#hash (<- note: hash!) from the request?
The hash and the fragment-identifier that follows are only used by the browser and are not sent as part of the HTTP request. If you need information beyond the document identifier to be sent, you need to use query parameters. -Fred -- Fred L. Drake, Jr. <fdrake at gmail.com> "There is no wealth but life." --John Ruskin
Fred Drake schrieb:
The hash and the fragment-identifier that follows are only used by the browser and are not sent as part of the HTTP request. If you need information beyond the document identifier to be sent, you need to use query parameters.
You are right, parameters are my friend. I have tried to use the hash with some javascript to load the (rest of the) page via XHR, works nice w/o authentication. Regards Jürgen
participants (3)
-
"Jürgen R. Plasser" -
Fred Drake -
Tino Wildenhain