HTTPSClientSession::HTTPSClientSession(const std::string& host, Poco::UInt16 port, Context::Ptr pContext): HTTPClientSession(SecureStreamSocket(pContext)), _pContext(pContext) { setHost(host); setPort(port); }
HTTPSClientSession::HTTPSClientSession(const std::string& host, Poco::UInt16 port): HTTPClientSession(SecureStreamSocket()), _pContext(SSLManager::instance().defaultClientContext()) { setHost(host); setPort(port); }
HTTPSClientSession::HTTPSClientSession(const std::string& host, Poco::UInt16 port, Context::Ptr pContext, Session::Ptr pSession): HTTPClientSession(SecureStreamSocket(pContext, pSession)), _pContext(pContext), _pSession(pSession) { setHost(host); setPort(port); SecureStreamSocket sss(socket()); sss.setPeerHostName(host); }
HTTPSClientSession::HTTPSClientSession(Context::Ptr pContext, Session::Ptr pSession): HTTPClientSession(SecureStreamSocket(pContext, pSession)), _pContext(pContext), _pSession(pSession) { }
HTTPSClientSession::HTTPSClientSession(Context::Ptr pContext): HTTPClientSession(SecureStreamSocket(pContext)), _pContext(pContext) { }
HTTPSClientSession::HTTPSClientSession(): HTTPClientSession(SecureStreamSocket()), _pContext(SSLManager::instance().defaultClientContext()) { setPort(HTTPS_PORT); }