Published in: ASP
URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=13
One thing that always bothered me about Classic ASP is that there isn't an easy way to get the entire url. So I devised a function that will get the full path including the query string.
function GetPath() query_string = request.ServerVariables("QUERY_STRING") if query_string <> "" then query_string = "?" & query_string end if GetPath = "http://" & request.ServerVariables("SERVER_NAME") & request.ServerVariables("URL") & query_string end function
Comments
Subscribe to comments
You need to login to post a comment.

What if the protocol is HTTPS instead of HTTP? You can check this via Request.ServerVariables("HTTPS")