' get the full URL as requested from the client...
' first, make headers into a dictionary for easier debugging
var headers() as string = request.headerNames
var d as new Dictionary
for each key as string in headers
d.value(key) = request.Header(key)
next
' next, get the parts needed to recreate the URL
var theHost as string = d.value("host")
var path as string = request.path
var query as string = request.QueryString
var secure as Boolean = request.Secure
' make the URL
var fullURL as string = _
If(secure,"https://", "http://") _
+ theHost _
+ If(path="", "", "/" + path) _
+ If(query="", "", "?" + query)