OpenZWave Library  1.6.734
Classes | Enumerations | Functions
OpenZWave::SimpleHTTPClient Namespace Reference

Classes

class  HttpSocket
 a Socket that speaks HTTP protocol.Talk to a HTTP(s) server More...
 
class  POST
 This class is used for Posting data to a HTTP(s) serverPost some data to a HTTP(s) server. More...
 
struct  Request
 Main class for making a HTTP request to a HTTP(s) serverMake a request to a HTTP Server. More...
 
class  SocketSet
 Support Multiple TCP Socket connectionsto Support multiple TCP Socket Connections. More...
 
class  TcpSocket
 a TCP Socket that can optionally be protected via SSLThis represents a TCP Socket that can be encrypted via SSL and is used to connect to a TCP Server (in this case, a HTTP(s) Server More...
 

Enumerations

enum  SSLResult {
  SSLR_OK = 0x0, SSLR_NO_SSL = 0x1, SSLR_FAIL = 0x2, SSLR_CERT_EXPIRED = 0x4,
  SSLR_CERT_REVOKED = 0x8, SSLR_CERT_CN_MISMATCH = 0x10, SSLR_CERT_NOT_TRUSTED = 0x20, SSLR_CERT_MISSING = 0x40,
  SSLR_CERT_SKIP_VERIFY = 0x80, SSLR_CERT_FUTURE = 0x100, _SSLR_FORCE32BIT = 0x7fffffff
}
 Result Codes for SSL operations. More...
 
enum  HttpCode { HTTP_OK = 200, HTTP_NOTFOUND = 404 }
 

Functions

bool HasSSL ()
 Indicates if we support HTTPS requestsIndicates if we support HTTPS requests. More...
 
int _GetError ()
 
std::string _GetErrorStr (int e)
 
bool InitNetwork ()
 Initialize the Network for HTTP requestsInitializes the Network for HTTP requests. More...
 
void StopNetwork ()
 Stop the Network for HTTP requestsStops the Network for HTTP requests and releases resources associated with it. More...
 
bool SplitURI (const std::string &uri, std::string &protocol, std::string &host, std::string &file, int &port, bool &useSSL)
 
void URLEncode (const std::string &s, std::string &enc)
 Encode a String suitable for sending as a URL request (eg Get)Encode a String so it can be sent as part of a URL request. More...
 
bool SplitURI (const std::string &uri, std::string &host, std::string &file, int &port)
 Split a URL into its different parts/ports etcSplit a URL Into the different parts/ports. More...
 

Enumeration Type Documentation

◆ HttpCode

Enumerator
HTTP_OK 
HTTP_NOTFOUND 

Function Documentation

◆ _GetError()

int OpenZWave::SimpleHTTPClient::_GetError ( )
inline

◆ _GetErrorStr()

std::string OpenZWave::SimpleHTTPClient::_GetErrorStr ( int  e)
inline

◆ SplitURI()

bool OpenZWave::SimpleHTTPClient::SplitURI ( const std::string &  uri,
std::string &  protocol,
std::string &  host,
std::string &  file,
int &  port,
bool &  useSSL 
)