Public Member Functions | |
curl_transfer (const curl_transfer &)=delete | |
curl_transfer (const std::string &host, const std::string &user_arg, const std::string &passwd, std::ostream &os) | |
curl_transfer (const std::string &url_str, std::ostream &os) | |
curl_transfer (void) | |
~curl_transfer (void) | |
void | ascii (void) |
void | binary (void) |
void | cookie_jar (const std::string &filename) |
void | cwd (const std::string &path) |
void | del (const std::string &file) |
void | dir (void) |
void | form_data_post (const Array< std::string > ¶m) |
void | get (const std::string &file, std::ostream &os) |
void | get_fileinfo (const std::string &filename, double &filesize, OCTAVE_TIME_T &filetime, bool &fileisdir) |
bool | good (void) const |
void | http_action (const Array< std::string > ¶m, const std::string &action) |
void | http_get (const Array< std::string > ¶m) |
void | http_post (const Array< std::string > ¶m) |
bool | is_ascii (void) const |
bool | is_binary (void) const |
bool | is_valid (void) const |
std::string | lasterror (void) const |
string_vector | list (void) |
void | mget_directory (const std::string &directory, const std::string &target) |
void | mkdir (const std::string &path) |
string_vector | mput_directory (const std::string &base, const std::string &directory) |
curl_transfer & | operator= (const curl_transfer &)=delete |
void | perform (void) |
void | put (const std::string &file, std::istream &is) |
std::string | pwd (void) |
void | rename (const std::string &oldname, const std::string &newname) |
void | rmdir (const std::string &path) |
void | set_header_fields (const Array< std::string > ¶m) |
std::istream & | set_istream (std::istream &is) |
std::ostream & | set_ostream (std::ostream &os) |
void | set_weboptions (const struct weboptions &options) |
Protected Attributes | |
bool | m_ascii_mode |
std::istream * | m_curr_istream |
std::ostream * | m_curr_ostream |
std::string | m_errmsg |
bool | m_ftp |
std::string | m_host_or_url |
bool | m_ok |
bool | m_valid |
Private Member Functions | |
std::string | form_query_string (const Array< std::string > ¶m) |
void | ftp_file_or_dir_action (const std::string &file_or_dir, const std::string &action) |
void | init (const std::string &user, const std::string &passwd, std::istream &is, std::ostream &os) |
Private Attributes | |
CURL * | m_curl |
CURLcode | m_errnum |
std::string | m_url |
std::string | m_userpwd |
Definition at line 288 of file url-transfer.cc.
|
inline |
Definition at line 292 of file url-transfer.cc.
References m_curl, base_url_transfer::m_errmsg, and base_url_transfer::m_valid.
|
inline |
Definition at line 302 of file url-transfer.cc.
References init(), m_curl, base_url_transfer::m_errmsg, m_url, base_url_transfer::m_valid, perform(), and SETOPT.
|
inline |
Definition at line 324 of file url-transfer.cc.
References init(), m_curl, base_url_transfer::m_errmsg, base_url_transfer::m_valid, and SETOPT.
|
delete |
|
inline |
Definition at line 361 of file url-transfer.cc.
References m_curl.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 399 of file url-transfer.cc.
References base_url_transfer::m_ascii_mode, and SETOPT.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 405 of file url-transfer.cc.
References base_url_transfer::m_ascii_mode, and SETOPT.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 680 of file url-transfer.cc.
References SETOPT.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 411 of file url-transfer.cc.
References ftp_file_or_dir_action().
Referenced by get_fileinfo().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 416 of file url-transfer.cc.
References ftp_file_or_dir_action().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 486 of file url-transfer.cc.
References base_url_transfer::good(), base_url_transfer::m_host_or_url, m_url, perform(), and SETOPT.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 713 of file url-transfer.cc.
References base_url_transfer::m_host_or_url, Array< T, Alloc >::numel(), perform(), and SETOPT.
|
inlineprivate |
Definition at line 859 of file url-transfer.cc.
References m_curl, and Array< T, Alloc >::numel().
Referenced by http_action().
|
inlineprivate |
Definition at line 889 of file url-transfer.cc.
References base_url_transfer::good(), perform(), and SETOPT.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 469 of file url-transfer.cc.
References base_url_transfer::good(), base_url_transfer::m_host_or_url, m_url, perform(), set_ostream(), and SETOPT.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 549 of file url-transfer.cc.
References cwd(), base_url_transfer::good(), m_curl, base_url_transfer::m_host_or_url, m_url, perform(), pwd(), SETOPT, throw_away(), and write_data().
|
inlineinherited |
Definition at line 81 of file url-transfer.h.
Referenced by dir(), ftp_file_or_dir_action(), get(), get_fileinfo(), list(), base_url_transfer::mget_directory(), base_url_transfer::mput_directory(), put(), pwd(), and rename().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 639 of file url-transfer.cc.
References form_query_string(), base_url_transfer::m_errmsg, base_url_transfer::m_host_or_url, base_url_transfer::m_ok, m_url, perform(), and SETOPT.
Referenced by http_get(), and http_post().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 629 of file url-transfer.cc.
References http_action().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 634 of file url-transfer.cc.
References http_action().
|
inlineprivate |
Definition at line 807 of file url-transfer.cc.
References m_userpwd, OCTAVE_VERSION, read_data(), SETOPT, and write_data().
Referenced by curl_transfer().
|
inlineinherited |
Definition at line 101 of file url-transfer.h.
|
inlineinherited |
Definition at line 103 of file url-transfer.h.
|
inlineinherited |
Definition at line 79 of file url-transfer.h.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 378 of file url-transfer.cc.
References m_errnum.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 501 of file url-transfer.cc.
References base_url_transfer::good(), base_url_transfer::m_curr_ostream, base_url_transfer::m_host_or_url, m_url, n, perform(), string_vector::resize(), and SETOPTR.
|
inherited |
Definition at line 74 of file url-transfer.cc.
References base_url_transfer::cwd(), dir_sep_str(), unwind_action_safe::discard(), base_url_transfer::get(), base_url_transfer::get_fileinfo(), base_url_transfer::good(), base_url_transfer::list(), base_url_transfer::m_errmsg, base_url_transfer::m_ok, mkdir(), string_vector::numel(), ofstream(), and unlink().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 426 of file url-transfer.cc.
References ftp_file_or_dir_action().
|
inherited |
Definition at line 144 of file url-transfer.cc.
References string_vector::append(), base_url_transfer::cwd(), dir_sep_str(), get_dirlist(), base_url_transfer::good(), ifstream(), base_url_transfer::m_errmsg, base_url_transfer::m_ok, base_url_transfer::mkdir(), string_vector::numel(), and base_url_transfer::put().
|
delete |
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 367 of file url-transfer.cc.
References m_curl, base_url_transfer::m_errmsg, m_errnum, and base_url_transfer::m_ok.
Referenced by curl_transfer(), dir(), form_data_post(), ftp_file_or_dir_action(), get(), get_fileinfo(), http_action(), list(), put(), pwd(), and rename().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 450 of file url-transfer.cc.
References base_url_transfer::good(), base_url_transfer::m_host_or_url, m_url, perform(), set_istream(), and SETOPT.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 596 of file url-transfer.cc.
References base_url_transfer::good(), perform(), SETOPTR, and write_data().
Referenced by get_fileinfo().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 431 of file url-transfer.cc.
References base_url_transfer::good(), perform(), and SETOPT.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 421 of file url-transfer.cc.
References ftp_file_or_dir_action().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 689 of file url-transfer.cc.
References Array< T, Alloc >::numel(), and SETOPT.
Referenced by set_weboptions().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 391 of file url-transfer.cc.
References base_url_transfer::m_curr_istream, and SETOPTR.
Referenced by put().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 383 of file url-transfer.cc.
References base_url_transfer::m_curr_ostream, and SETOPTR.
Referenced by get().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 744 of file url-transfer.cc.
References weboptions::ArrayFormat, weboptions::CertificateFilename, weboptions::ContentReader, weboptions::HeaderFields, weboptions::Password, set_header_fields(), SETOPT, weboptions::Timeout, weboptions::UserAgent, and weboptions::Username.
|
protectedinherited |
Definition at line 160 of file url-transfer.h.
|
private |
Definition at line 786 of file url-transfer.cc.
Referenced by curl_transfer(), ~curl_transfer(), form_query_string(), get_fileinfo(), and perform().
|
protectedinherited |
Definition at line 163 of file url-transfer.h.
Referenced by set_istream().
|
protectedinherited |
Definition at line 164 of file url-transfer.h.
Referenced by list(), and set_ostream().
|
protectedinherited |
Definition at line 162 of file url-transfer.h.
Referenced by curl_transfer(), http_action(), base_url_transfer::mget_directory(), base_url_transfer::mput_directory(), and perform().
|
private |
Definition at line 789 of file url-transfer.cc.
Referenced by lasterror(), and perform().
|
protectedinherited |
Definition at line 159 of file url-transfer.h.
|
protectedinherited |
Definition at line 157 of file url-transfer.h.
Referenced by dir(), form_data_post(), get(), get_fileinfo(), http_action(), list(), and put().
|
protectedinherited |
Definition at line 161 of file url-transfer.h.
Referenced by http_action(), base_url_transfer::mget_directory(), base_url_transfer::mput_directory(), and perform().
|
private |
Definition at line 804 of file url-transfer.cc.
Referenced by curl_transfer(), dir(), get(), get_fileinfo(), http_action(), list(), and put().
|
private |
Definition at line 805 of file url-transfer.cc.
Referenced by init().
|
protectedinherited |
Definition at line 158 of file url-transfer.h.
Referenced by curl_transfer().