CHttpFile* pFile = pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST, _T(Action), NULL, 1, NULL, NULL, INTERNET_FLAG_SECURE);I haven't tried it. There is also WinHttp and WinInet but they aren't MFC.
Programming Tips - MFC: download a web page
Date: 2018dec13
Framework: MFC
Keywords: url, uri, internet, http, CInternetConnection
Language: C++
OS: Windows
Q. MFC: download a web page
A. Use the CHttpConnection class
Example
https://www.codeproject.com/Articles/1876/Retrieving-a-file-via-HTTP
For SSL/TLS I saw this on stackoverflow.com