There is no easy way to do this withoug writing some code. The exact code will depend on the Web server software you are using, but the following will work with most servers, including IIS:
DO CASE
CASE Request.ServerVariables("HTTPS") = ""
* Server does not support HTTPS server variable
IF Request.ServerVariables("SERVER_PORT") = "443"
UrlString = "https://"
ELSE
UrlString = "http://"
ENDIF
CASE LOWER(Request.ServerVariables("HTTPS")) = "on"
UrlString = "https://"
OTHERWISE
UrlString = "http://" ENDCASE
UrlString = UrlString + Request.ServerVariables("SERVER_NAME") + ;
Request.ServerVariables("SCRIPT_NAME")
IF Request.ServerVariables("PATH_INFO") <> Request.ServerVariables("SCRIPT_NAME")
* For script mapped URLs SCRIPT_NAME is usually the same as PATH_INFO
UrlString = UrlString + Request.ServerVariables("PATH_INFO")
ENDIF
IF NOT EMPTY(Request.ServerVariables("QUERY_STRING"))
UrlString = UrlString + "?" + Request.ServerVariables("QUERY_STRING")
ENDIF |
FoxWeb Support Team support@foxweb.com email |
Sent by Ron Stahl on 10/10/2002 09:31:08 AM:
I am wondering it there is a way to get the complete URL that was used to get to a page. the REquest.ServerVariables("URL") only returns that base URL. I would like to get the complete URL instead..
Anyhow please let me know if this is possible...
Thanks
Ron Stahl