Bonjour,

je comprend pas, mon code fonctionnait tres bien jusque la,

Et paf,maintenant, apres InternetOpenUrl, GetLastError me renvois l'erreur 12031, à savoir :

12031 ERROR_INTERNET_CONNECTION_RESET
La connexion au serveur a été réinitialisée.
J'ai beau promener sur google a la recherche de solution, d'info... jvois pas comment passer outre.

voici une partie demon code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
hInternetSession = InternetOpen (USER_AGENT, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, NULL) ;

if (hInternetSession)
{
    hHttpSession  = InternetOpenUrl( hInternetSession, "HTTPS://SSL.MON_URL.COM", NULL, 0, INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_NO_UI | INTERNET_FLAG_PRAGMA_NOCACHE | INTERNET_FLAG_RELOAD| INTERNET_FLAG_SECURE | INTERNET_FLAG_IGNORE_CERT_CN_INVALID | INTERNET_FLAG_IGNORE_CERT_DATE_INVALID, 0 ) ;

    if (hHttpSession){
        InternetCloseHandle( hHttpSession );
    }
    else{    
        _cprintf("Err : %d\n", GetLastError());
    }
    
    InternetCloseHandle (hInternetSession) ;
}
Si vous pouvez m'aider.

Merci