Upload a file using POCO - SSL Connection Unexpectedly Closed Exception
Upload a file to a HTTPS url using POCO HTTP POST request always returns "SSL Connection Unexpectedly Closed" Exception Below is the code i am using for Multipart upload of a file.. try { Poco::URI uri(uploadLink); const Poco::Net::Context::Ptr context = new Poco::Net::Context(Poco::Net::Context::CLIENT_USE, "", "", "", Poco::Net::Context::VERIFY_NONE, 9, false, "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"); Poco::Net::HTTPSClientSession session(uri.getHost(), uri.getPort(), context); session.setKeepAlive(true); // prepare path std::string path(uri.getPathAndQuery()); if (path.empty()) { path = "/"; }