Last active
December 14, 2015 08:29
-
-
Save phantom42/5057809 to your computer and use it in GitHub Desktop.
CF code to get the full URL that the user entered. Credit to Ben Nadel http://www.bennadel.com/blog/378-Getting-The-Requested-URL-From-The-Page-Request-Object-Servlet-Without-Using-CGI.htm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Get request from ColdFusion page contenxt. ---> | |
<cfset objRequest = GetPageContext().GetRequest() /> | |
<!--- Get requested URL from request object. ---> | |
<cfset strUrl = objRequest.GetRequestUrl().Append( | |
"?" & objRequest.GetQueryString() | |
).ToString() | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment