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 all

Basic Examples  (2)

Get a textual snippet from the Wolfram website:

In[1]:=
Click for copyable input
Out[1]=

Without the URL wrapper, the string itself will be used as data:

In[2]:=
Click for copyable input
Out[2]=

Formatting of a URL object:

In[1]:=
Click for copyable input
Out[1]=

Scope  (3)

Introduced in 2016
(11.0)