[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question
From: |
Ben Abbott |
Subject: |
Re: Question |
Date: |
Wed, 03 Jun 2009 03:14:55 -0400 |
On Jun 3, 2009, at 2:39 AM, Sobczyk Adam wrote:
-----Original Message-----
From: Ben Abbott [mailto:address@hidden
Sent: Tuesday, June 02, 2009 3:19 PM
To: Sobczyk Adam
Cc: address@hidden
Subject: Re: Question
On Jun 2, 2009, at 8:15 AM, Sobczyk Adam wrote:
Hello,
Does Octave supports Matlab functions: urlread and urlwrite?
Best regards,
Adam Sobczy
I can't confirm the Octave's versions are fully compatible with
Matlab's,
but they are present.
Ben
Thanks, Ben. What are their names? What about sendmail?
Adam
The names are the same. Below you can see the help for urlread.
Sendmail does not exist in Octave.
Ben
octave:3> help urlread
`urlread' is a function from the file /Users/bpabbott/Development/
mercurial/local_clone/src/urlwrite.oct
-- Loadable Function: S = urlread (URL)
-- Loadable Function: [S, SUCCESS] = urlread (URL)
-- Loadable Function: [S, SUCCESS, MESSAGE] = urlread (URL)
-- Loadable Function: [...] = urlread (URL, METHOD, PARAM)
Download a remote file specified by its URL and return its content
in string S. For example,
s = urlread ("ftp://ftp.octave.org/pub/octave/README");
The variable SUCCESS is 1 if the download was successful,
otherwise it is 0 in which case MESSAGE contains an error message.
If no output argument is specified and if 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,
s = urlread ("http://user:address@hidden/file.txt");
GET and POST requests can be specified by METHOD and PARAM. The
parameter METHOD is either `get' or `post' and PARAM is a cell
array of parameter and value pairs. For example,
s = urlread ("http://www.google.com/search", "get",
{"query", "octave"});
See also: urlwrite