This command will create a directory named "randomstring" in the current directory, and download the contents of the website "example.com" into it.
curl -sL http://example.com | xargs -I- mkdir -p -/randomstring