to do the https connection , Im using finally as msdn mention , the wininet lib, you should initiate those functions in the same order if im not wrong, much infos at msdn:
http://msdn.microsoft.com/library/en-us ... etopen.asp http://msdn.microsoft.com/library/en-us ... onnect.asp http://msdn.microsoft.com/library/en-us ... equest.asp http://msdn.microsoft.com/library/en-us ... equest.asp
you can initizate several type of connection with , http/https/gopher/ftp/etc...