changeset 31780:148ca3633be2

maint: merge stable to default
author Rik <rik@octave.org>
date Thu, 26 Jan 2023 08:19:20 -0800
parents 9feb455dd514 (current diff) 713de911848f (diff)
children 3cd5c988b3f7
files libinterp/corefcn/urlwrite.cc
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/urlwrite.cc	Wed Jan 25 19:10:22 2023 -0500
+++ b/libinterp/corefcn/urlwrite.cc	Thu Jan 26 08:19:20 2023 -0800
@@ -67,7 +67,7 @@
 
 @example
 @group
-urlwrite ("ftp://ftp.octave.org/pub/README",
+urlwrite ("http://ftp.octave.org/pub/README",
           "README.txt");
 @end group
 @end example
@@ -80,9 +80,9 @@
 If no output argument is specified and an error occurs, then the error is
 signaled through Octave's error handling mechanism.
 
-This function uses libcurl.  Curl supports, among others, the HTTP, FTP, and
-FILE protocols.  Username and password may be specified in the URL, for
-example:
+This function uses libcurl.  The curl library supports, among others, the HTTP,
+FTP, and FILE protocols.  Username and password may be specified in the URL,
+for example:
 
 @example
 @group
@@ -187,7 +187,7 @@
 For example:
 
 @example
-s = urlread ("ftp://ftp.octave.org/pub/README");
+s = urlread ("http://ftp.octave.org/pub/README");
 @end example
 
 The variable @var{success} is 1 if the download was successful,
@@ -197,9 +197,9 @@
 If no output argument is specified and an error occurs, then the error is
 signaled through Octave's error handling mechanism.
 
-This function uses libcurl.  Curl supports, among others, the HTTP, FTP, and
-FILE protocols.  Username and password may be specified in the URL@.  For
-example:
+This function uses libcurl.  The curl library supports, among others, the HTTP,
+FTP, and FILE protocols.  Username and password may be specified in the URL@.
+For example:
 
 @example
 s = urlread ("http://user:password@@example.com/file.txt");
@@ -212,8 +212,8 @@
 
 @example
 @group
-s = urlread ("http://www.google.com/search", "get",
-            @{"query", "octave"@});
+s = urlread ("http://www.google.com/search",
+             "get", @{"query", "octave"@});
 @end group
 @end example
 @seealso{urlwrite}