Download URL content to character vector (not recommended)
str = urlread(URL)
str = urlread(URL,Name,Value)
[str,status] = urlread(___)
uses additional options specified by one or morestr
= urlread(URL
,Name,Value
)Name,Value
pair arguments.
urlread
saves web content to a character vector. To save content to a file, useurlwrite
.
urlread
andurlwrite
can download content from FTP sites. Alternatively, use theftp
function to connect to an FTP server and themget
function to download a file.