uri-fragment

Is the URL fragment identifier sent to the server? [duplicate]

别等时光非礼了梦想. 提交于 2019-12-17 05:11:46
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Can PHP read the hash portion of the URL? The (famous?) web site mega.co.nz uses a hash mark in URLs to link to encrypted files; the portion of the URL after the hash mark contains a password, and encryption is claimed to happen on the client side. It is certainly feasible to use javascript for client-side encryption but … isn't the URL sent to the server, thus revealing the password to the server itself? The

URL fragment lost as part of SAML token authentication; workaround / standard pattern?

这一生的挚爱 提交于 2019-12-10 15:23:43
问题 Several web application authentication protocols (like WS-Federation and the SAML protocol, i.e., so-called 'passive' protocols, and apparently also ASP.NET Forms authentication, see this StackOverflow question, and AppEngine, see this GWT bug comment) lose the original 'URL fragment', i.e. the part after the #-sign. What happens is roughly the following: in a clean browser (so no cached info/cookies/login information) I open URL (1) http://example.com/myapp/somepage?some=parameter#somewhere.

Retain Url Fragment within ReturnUrl in Forms Authentation under MVC

流过昼夜 提交于 2019-12-08 02:18:37
问题 I have a scenario where I need to send the user to the login page, with the returnurl parameter populated with the page they're currently sitting on including a url fragment, so as when they complete login, they're redirected back to their original page and the page scrolls down to a specific #location. At present, it's all working except that the url fragment is lost when the returnUrl param reaches the Login ActionMethod. Is there a way to retain this url fragment so it doesn't get lost

Retain Url Fragment within ReturnUrl in Forms Authentation under MVC

风流意气都作罢 提交于 2019-12-06 07:53:55
I have a scenario where I need to send the user to the login page, with the returnurl parameter populated with the page they're currently sitting on including a url fragment, so as when they complete login, they're redirected back to their original page and the page scrolls down to a specific #location. At present, it's all working except that the url fragment is lost when the returnUrl param reaches the Login ActionMethod. Is there a way to retain this url fragment so it doesn't get lost during the login phase? I can see the #fragment in the url on the login page, but it appears to be

How to use htaccess to rewrite url to html anchor tag (#)

久未见 提交于 2019-11-28 13:18:05
I have a situation where I want to take the following URL: /1/john and have it redirect using Apache's htaccess file to go to /page.php?id=1&name=john#john so that it goes to an html anchor with the name of john. I've found a lot of reference to escaping special characters, and to adding the [NE] flag so that the redirect ignores the # sign, but these don't work. For example, adding [NE,R] means that the URL just appears in the browser address as the original: http://example.com/page.php?id=1&name=john#john . credendio This is possible using [NE] flag (noescape). By default, special characters

How to use htaccess to rewrite url to html anchor tag (#)

≯℡__Kan透↙ 提交于 2019-11-27 07:35:50
问题 I have a situation where I want to take the following URL: /1/john and have it redirect using Apache's htaccess file to go to /page.php?id=1&name=john#john so that it goes to an html anchor with the name of john. I've found a lot of reference to escaping special characters, and to adding the [NE] flag so that the redirect ignores the # sign, but these don't work. For example, adding [NE,R] means that the URL just appears in the browser address as the original: http://example.com/page.php?id=1

Can I read the hash portion of the URL on my server-side application (PHP, Ruby, Python, etc.)?

微笑、不失礼 提交于 2019-11-25 21:38:38
问题 Assuming a URL of: www.example.com/?val=1#part2 PHP can read the request variables val1 using the GET array. Is the hash value part2 also readable? Or is this only upto the browser and JavaScript? 回答1: The main problem is that the browser won't even send a request with a fragment part. The fragment part is resolved right there in the browser. So it's reachable through JavaScript. Anyway, you could parse a URL into bits, including the fragment part, using parse_url(), but it's obviously not