I am interfacing my application with a third party application, the third party application pass my application at one place with ‘#’ hash as query variable separator than ‘&’ ampersand. C# removes the malformed part of query string, i.e. ‘#’ and all part further right to it. Is there any way to get the whole raw query string including the malformed part, so that I can parse it myself.
There is no provision available to ask third party to correct this issue.
I have tried Request.QueryString, Request.RawQuery, Request.Url.Query but none contain the actual raw query with malformed part. Which means raw query is NOT actual raw query 🙁
If you could help me, I will be grateful to you.
Thank you.
Getting the contents after the hash in the URL isn’t straightforward because it is intended for the client, not your application running on the server. How does the interaction between the two applications happen, perhaps a workaround can be applied?
Also, have you seen this: How to get Url Hash (#) from server side