|
-
October 18th, 2006, 05:13 AM
#1
WinInet : Error 12031
Hi,
My code was running correctly for a long, and now, only on my pc, I got an error code while getting a ssl web page,
here is the error :
ERROR_INTERNET_CONNECTION_RESET
12031
The connection with the server has been reset
here a piece of my code :
Code:
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) ;
}
I read many page found on google for this error, but I didn't found how to fix this problem,
could you help me please ?
jb
[edit] : Replacing "INTERNET_OPEN_TYPE_PRECONFIG" by "INTERNET_OPEN_TYPE_DIRECT" or "INTERNET_OPEN_TYPE_PROXY" doesn't fix anything
Last edited by FireJocker; October 18th, 2006 at 05:17 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|