Skip to content

urlread

builtin · libnexusinterp/corefcn/urlwrite-proprietary.cc

: s = urlread (url)
: [s, success, message] = urlread (url, method, param)

Download the content of url and return it as a string.

method is "get" or "post" and param is a cell array of alternating parameter names and values. When the transfer fails and fewer than two outputs are requested an error is raised; otherwise s is empty, success is false and message explains the failure.