comparison src/DLD-FUNCTIONS/urlwrite.cc @ 7031:120f3135952f

[project @ 2007-10-15 15:30:03 by jwe]
author jwe
date Mon, 15 Oct 2007 15:31:21 +0000
parents a1dbe9d80eee
children 78f3811155f7
comparison
equal deleted inserted replaced
7030:bdcea6ede1cd 7031:120f3135952f
193 @deftypefnx {Loadable Function} {[@var{f}, @var{success}, @var{message}] =} urlwrite (@var{url}, @var{localfile})\n\ 193 @deftypefnx {Loadable Function} {[@var{f}, @var{success}, @var{message}] =} urlwrite (@var{url}, @var{localfile})\n\
194 Download a remote file specified by its @var{URL} and save it as\n\ 194 Download a remote file specified by its @var{URL} and save it as\n\
195 @var{localfile}. For example,\n\ 195 @var{localfile}. For example,\n\
196 \n\ 196 \n\
197 @example\n\ 197 @example\n\
198 urlwrite (\"ftp://ftp.octave.org/pub/octave/README\", \"README.txt\");\n\ 198 urlwrite (\"ftp://ftp.octave.org/pub/octave/README\", \n\
199 \"README.txt\");\n\
199 @end example\n\ 200 @end example\n\
200 \n\ 201 \n\
201 The full path of the downloaded file is returned in @var{f}. The\n\ 202 The full path of the downloaded file is returned in @var{f}. The\n\
202 variable @var{success} is 1 if the download was successful,\n\ 203 variable @var{success} is 1 if the download was successful,\n\
203 otherwise it is 0 in which case @var{message} contains an error\n\ 204 otherwise it is 0 in which case @var{message} contains an error\n\
340 This function uses libcurl. Curl supports, among others, the HTTP,\n\ 341 This function uses libcurl. Curl supports, among others, the HTTP,\n\
341 FTP and FILE protocols. Username and password may be specified in the\n\ 342 FTP and FILE protocols. Username and password may be specified in the\n\
342 URL. For example,\n\ 343 URL. For example,\n\
343 \n\ 344 \n\
344 @example\n\ 345 @example\n\
345 s = urlread (\"http://username:password@@example.com/file.txt\");\n\ 346 s = urlread (\"http://user:password@@example.com/file.txt\");\n\
346 @end example\n\ 347 @end example\n\
347 \n\ 348 \n\
348 GET and POST requests can be specified by @var{method} and @var{param}.\n\ 349 GET and POST requests can be specified by @var{method} and @var{param}.\n\
349 The parameter @var{method} is either @samp{get} or @samp{post}\n\ 350 The parameter @var{method} is either @samp{get} or @samp{post}\n\
350 and @var{param} is a cell array of parameter and value pairs.\n\ 351 and @var{param} is a cell array of parameter and value pairs.\n\