How to determine that client URL is path only

W

wizofaus

IIS 6.0 by default includes 'default.aspx' as a default document, so if
your ASP.NET app uses default.aspx, and a user types a URL without a
document name (i.e., a directory name only, e.g.
http://localhost/foo/), IIS automatically loads up default.aspx to
process the request.
The problem is, it appears that from the server end, there is no way of
determining that this is what the user has done. That is, when you
examine the various variables that are supposed to give information
about what URL the user accessed (Request.RawUrl etc. etc.), they all
*include* default.aspx, even though the user never asked for this. Is
there any way of getting the URL they actually requested? IIS must
have this recorded somewhere, but it doesn't appear to be available.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top