URL["url"]
is a symbolic representation of a URL.
URL
URL["url"]
is a symbolic representation of a URL.
Details
- In URL["url"], "url" can be any kind of URL. Supported URL schemes include:
-
http: HTTP protocol https: secure HTTP protocol ftp: file transfer protocol sftp: secure file transfer protocol scp: secure copy protocol file: local file - In URL["url"], the resource referred to by url does not need to exist or be accessible.
- Information for a URL may include the following properties:
-
"Scheme" URL scheme (appearing at the beginning) "User" user information "Domain" domain name or host "Port" port number (appearing after :) "Path" path list (separated by /) "PathString" complete path as a string "AbsoluteDomain" complete domain as a string, including scheme "AbsolutePath" complete path as a string, including scheme and domain "Query" list of parameter-value pairs (appearing after ?) "QueryString" complete query string "Fragment" fragment specification (appearing after #)
Examples
open all close allBasic Examples (2)
Get a textual snippet from the Wolfram website:
Snippet[URL["http://www.wolfram.com"]]Without the URL wrapper, the string itself will be used as data:
Snippet["http://www.wolfram.com"]Formatting of a URL object:
URL["http://www.wolfram.com"]Scope (3)
A URL object need not refer to an existing or reachable resource:
URL["http://www.invalid."]A URL object can refer to any supported protocol:
CopyFile["test.m", URL["scp://server.example.com/tmp"]]Specify a username in the protocol:
CopyFile[URL["sftp://user@host.example.com/tmp/test.m"], CreateFile[]]Related Guides
Text
Wolfram Research (2016), URL, Wolfram Language function, https://reference.wolfram.com/language/ref/URL.html (updated 2019).
CMS
Wolfram Language. 2016. "URL." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/URL.html.
APA
Wolfram Language. (2016). URL. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/URL.html
BibTeX
@misc{reference.wolfram_2026_url, author="Wolfram Research", title="{URL}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/URL.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_url, organization={Wolfram Research}, title={URL}, year={2019}, url={https://reference.wolfram.com/language/ref/URL.html}, note=[Accessed: 13-June-2026]}