Created
December 23, 2016 15:15
-
-
Save Tropicalista/ee28dae1810a0f6e22a602bae8b0e5b2 to your computer and use it in GitHub Desktop.
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> | |
httpService = new http(); | |
httpService.setMethod( "GET" ); | |
httpService.setCharset( "utf-8" ); | |
httpService.setUrl( "https://wikipedia.org" ); | |
httpService.setRedirect( true ); | |
httpService.setUserAgent( "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.7 (KHTML, like Gecko) Chrome/5.0.391.0 Safari/533.7" ); | |
result = httpService.send().getPrefix(); | |
writeDump(result.responseheader); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment