I am writing a web application to look up information about year, make, and model of cars. I want to detect if the URL passed to the server is
http://server.com/Vehicles/2004/Honda/Civic DX 2 and 4 Dr.
(I am not putting the '%20' in the above because we can understand that the URL will be properly encoded/decoded and we don't need to belabor that)
So, in the Global.asax.cs file, I get the value of
Request.Url.PathAndQuery to determine whether a URL like this is passed. Only thing is, when I pass this URL to the server and I Thing is, not all car models end with a period, so I cannot know a priori which ones have periods and which do not.
Is this normal for
Request.Url.PathAndQuery to drop the ending '.' on the end of a URL? If so, is there another property of
Request that I can access in order to get the whole URL, period and all?