Created
August 20, 2022 00:32
-
-
Save trycf/75aae3db28d16ecd98c6ef40b4d1ea65 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains 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
<cfscript> | |
uri = 'https://blog.mattclemente.com/2021/10/01/til-cfml-objectsave-objectload/##the-backstory'; | |
parsed_uri = createObject( "java", "java.net.URI" ).init( uri ); | |
uri_components = { | |
"Scheme": parsed_uri.getScheme(), | |
"Scheme Specific Part": parsed_uri.getSchemeSpecificPart(), | |
"Authority": parsed_uri.getAuthority(), | |
"User Info": parsed_uri.getUserInfo(), | |
"Host": parsed_uri.getHost(), | |
"Port": parsed_uri.getPort(), | |
"Path": parsed_uri.getPath(), | |
"Query": parsed_uri.getQuery(), | |
"Fragment": parsed_uri.getFragment() | |
} | |
writeDump( uri_components ); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment