LibCURLRequest Class
(ExternalControlIO::LibCURLRequest)C++ wrapper around libCurl C library for CDP use. More...
Header: | #include <LibCURLRequest> |
Public Functions
LibCURLRequest(const std::string &URL, long protocols, const std::string &method, uint64_t timeout, std::istream &requestStream, long requestStreamLength, std::ostream &responseStream, int debugLevel, const std::string &debugLinePrefix) | |
~LibCURLRequest() | |
int | DbgLevel() const |
std::string | DebugLinePrefix() const |
CURL * | GetCURLHandle() const |
std::string | LastModifiedTimestamp() |
int | PerformRequest() |
std::istream & | RequestPrefixStream() |
std::istream & | RequestStream() const |
std::ostream & | ResponseStream() const |
void | SetFTPOptions(bool putAppends, bool putCreatesMissingDirs) |
void | SetHTTPOptions(const std::string &authMethod, const std::string &proxyUserPwd, const std::string &proxyAuthMethod, const std::string &userAgent, const std::string &additionalHttpHeaders, const std::string &contentType, const std::string &cookie, const std::string &cookieFile, bool followLocation) |
void | SetNetworkOptions(const std::string &interfaceName, const std::string &proxy, const std::string &userPwd) |
void | SetSMTPOptions(const std::string &to, const std::string &from, const std::string &subject) |
void | SetSSHOptions(const std::string &privateKeyFile, const std::string &privateKeyPwd, const std::string &hostPublicKeyMD5, bool allowAnyHostKey) |
void | SetTLSOptions(const std::string &tlsVersion, const std::string &caCertFileName, const std::string &clientCertFileName, const std::string &clientKeyFileName, const std::string &clientKeyFilePwd, const std::string &allowVerificationErrors) |
Detailed Description
C++ wrapper around libCurl C library for CDP use.
Uses iostreams for request input and output via libCurl CURLOPT_READFUNCTION and CURLOPT_WRITEFUNCTION callbacks. Provides also debugging functionality that will be turned on based on debugLevel for inspecting protocol headers, footers and data going through CURL using CURLOPT_VERBOSE and CURLOPT_DEBUGFUNCTION callback.
Member Function Documentation
LibCURLRequest::LibCURLRequest(const std::string &URL, long protocols, const std::string &method, uint64_t timeout, std::istream &requestStream, long requestStreamLength, std::ostream &responseStream, int debugLevel, const std::string &debugLinePrefix)
Default constructs an instance of LibCURLRequest.
LibCURLRequest::~LibCURLRequest()
Destroys the instance of LibCURLRequest.
int LibCURLRequest::DbgLevel() const
std::string LibCURLRequest::DebugLinePrefix() const
CURL *LibCURLRequest::GetCURLHandle() const
std::string LibCURLRequest::LastModifiedTimestamp()
int LibCURLRequest::PerformRequest()
std::istream &LibCURLRequest::RequestPrefixStream()
std::istream &LibCURLRequest::RequestStream() const
std::ostream &LibCURLRequest::ResponseStream() const
void LibCURLRequest::SetFTPOptions(bool putAppends, bool putCreatesMissingDirs)
void LibCURLRequest::SetHTTPOptions(const std::string &authMethod, const std::string &proxyUserPwd, const std::string &proxyAuthMethod, const std::string &userAgent, const std::string &additionalHttpHeaders, const std::string &contentType, const std::string &cookie, const std::string &cookieFile, bool followLocation)
void LibCURLRequest::SetNetworkOptions(const std::string &interfaceName, const std::string &proxy, const std::string &userPwd)
void LibCURLRequest::SetSMTPOptions(const std::string &to, const std::string &from, const std::string &subject)
void LibCURLRequest::SetSSHOptions(const std::string &privateKeyFile, const std::string &privateKeyPwd, const std::string &hostPublicKeyMD5, bool allowAnyHostKey)
void LibCURLRequest::SetTLSOptions(const std::string &tlsVersion, const std::string &caCertFileName, const std::string &clientCertFileName, const std::string &clientKeyFileName, const std::string &clientKeyFilePwd, const std::string &allowVerificationErrors)
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.