MATLAB Function Reference Previous page   Next Page
urlread

Read content 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

Use urlread to download the contents of the Authors list at the MATLAB Central File Exchange:

Download Content from File on FTP Server

The file Moler_1.txt displays in the MATLAB Command Window.

Download Content from Local File

See Also

urlwrite


Previous page  upper urlwrite Next page

© 1994-2005 The MathWorks, Inc.