I am maintaining a classic asp application and while going over the code I came across two similar lines of code:
request.serverVariables("URL")
''# Output: "/path/to/file.asp"
request.serverVariables("SCRIPT_NAME")
''# Output: "/path/to/file.asp"
I don't get it... what is the difference? both of them ignore the URL rewriting that I have set up which puts the /path folder as the root document (the above URL is rewritten to "/to/file.asp")
More info: The site is deployed on IIS 7
PS I commented the lines like this to make the stack overflow syntax highlighting work properly:
''# This is a comment in asp, and is displayed like one
' This makes everything after it appear like a string until it finds another
' <-- one of those