<< weboptions | Web tools | websave >> |
var = webread(url) |
var = webread(url, name1, value1, ... , nameN, valueN) |
var = webread(url, name1, value1, ... , nameN, valueN, options) |
a string: URL to a web service.
Name-Value Pair Arguments.
a weboptions object.
a variable: content from web.
webread() reads content from the web to nelson's variable.
url = 'https://httpbin.org/get';
res = webread(url,weboptions('ContentType','json'));
More demos
edit([modulepath('webtools'),'/examples/webread_demo_1.m'])
Use function_handle with weboptions and webread
edit([modulepath('webtools'),'/examples/webread_demo_2.m'])
Read data from National Agricultural Statistics Service
edit([modulepath('webtools'),'/examples/webread_demo_3.m'])
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET