MATLAB Function Reference    
urlread

Read contents at URL

Syntax

Description

s = urlread('url') reads the content at a URL into the string s. If the server returns binary data, s will be unreadable.

s = urlread('url','method','params') reads the content at a URL into the string s, passing information to the server as part of the request where method can be get or post, and params is a cell array of parameter-value pairs.

[s,status] = urlread(...) catches any errors and returns the error code.

Examples

Download Content from Web Page

Download the contents of the Top Authors list at MATLAB Central File Exchange, then look for a specific author in the results.

Download Content from File on FTP Server

The file Moler_1.txt displays in the Command Window.

Download Content from Local File

See Also

urlwrite


  upper urlwrite