A Bug has been reported in the product that only occurs for a specific platform, Windows Server 2003 Standard Edition.
Check the Trace Log and find that the wrapper class of Wininet call returns Error 12057, with the specific Error contents as follows:
Check the Trace Log and find that the wrapper class of Wininet call returns Error 12057, with the specific Error contents as follows:
-
12057
Indicates that revocation cannot be checked because the revocation server was offline (equivalent to CRYPT_E_REVOCATION_OFFLINE).
ERROR_WINHTTP_SECURE_CERT_REV_FAILED
-
Open the
IE-> Tools-> Internet Options-> Advanced Tab-> Security Options – & gt;” Check for server certificate revocation(Requires Restart) “
-
This option is currently selected. Remove this option and the Bug symptoms disappear. Only IE with Windows Server 2003 Standard Edition is checked by default, and Error 12057 (Microsoft’s Bug?) does not occur when this option is checked on other platforms. or with other options?) . Decided to code the problem.
-
The code to solve this problem is quite simple. Add the following code after HttpOpenRequest to set the current Http connection options to cancel this check
-
DWORD dwFlags = 0;
DWORD dwError = 0;
DWORD dwBuffLen = sizeof(dwFlags);
InternetQueryOption(m_hRequest, INTERNET_OPTION_SECURITY_FLAGS,
(LPVOID)& dwFlags, & dwBuffLen);
dwFlags |= SECURITY_FLAG_IGNORE_REVOCATION;
InternetSetOption(m_hRequest, INTERNET_OPTION_SECURITY_FLAGS, (LPVOID)& dwFlags, sizeof(dwFlags)) ;
Read More:
- Error parsing HTTP request header Note: further occurrences of HTTP header p
- Springboot project: error parsing HTTP request header note: further occurrences of HTTP request parsing
- MacOS: How to Fix Intellij-IDEA main menu disappears Bug
- After compiling. Java, the following appears: Note:checkUser.java uses unchecked or unsafe operations.Note :Recompile with -Xlint :unchecked for details.
- HTTP Error 502.5 – Process Failure (How to Fix)
- How to Fix:java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost
- How to Fix ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?
- On the use of cnzz statistics advertising research note
- How to Root the Samsung Galaxy Note 2 (GT-N7100)
- R note for Bioinfo: the column for the select call is undefined
- Red rice note3 (Kenzo) is brushed into lineage OS
- Please note that the module “sacrableu” has no “compute blue” attribute
- python: HTTP Error 505: HTTP Version Not Supported
- Socket Error 104 bug
- A first chance exception of type ‘ System.NullReferenceException ‘when occurred, you did encounter a bug
- Destructor abnormal stuck bug
- An Ajax HTTP error occurred in drupal7 installation occurred.HTTP Result Code
- [Linux] [kernel] bug: scheduling while atomic problem analysis
- A little bug of CSDN blog
- Vue — run ‘NPM audit fix’ to fix them, or ‘NPM audit’ for details appears when initializing the installation