URLDownload

URLDownload[url]

downloads the content of the specified URL to a local temporary file.

URLDownload[{url1,url2,}]

downloads the contents of the specified URLs to files in a local temporary directory.

URLDownload[url,file]

downloads to a specified file.

URLDownload[{url1,url2,},dir]

downloads to a specified directory.

URLDownload[req,]

downloads the result of the specified HTTP request.

URLDownload[{req1,req2,},]

downloads the results of the list of HTTP requests.

Details and Options

Examples

open allclose all

Basic Examples  (3)

This saves the content of the URL:

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

Download a file and check the status code returned from the server:

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

Gather information about a connection:

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

For more complex requests, use HTTPRequest:

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

Options  (4)

Properties & Relations  (2)

See Also

URLDownloadSubmit  URLRead  URLSubmit  LocalCache  CopyFile  Import  HTTPRequest

Introduced in 2016
(11.0)