Extension - Download URL

This section describes a function which downloads data from the WWW.

urldownload

Launch a URL in the default browser.

Syntax

contents = urldownload(url)

Description

urldownload(url) downloads data referenced by a URL. The result is typically an HTML document, or a data file such as an image. Both input and output arguments are strings.

urldownload(url,query) submits a query with the GET method and downloads the result. The URL should use the HTTP or HTTPS protocol.

urldownload(url,query,method) query with the specified method ('get' or 'post') and downloads the result.

Example

data = urldownload('http://www.w3.org');

Copyright 1999-2008, Calerga.
All rights reserved.