Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

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 OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (3)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]=
Introduced in 2016
(11.0)