1、解决办法:
DWORD dwTimeout = 3000; // 3s bRet = InternetSetOption(hRequest, INTERNET_OPTION_CONNECT_TIMEOUT, &dwTimeout, sizeof(dwTimeout)); if (!bRet) { printf("InternetSetOption CONNECT_TIMEOUT Error: %d\n", GetLastError()); break; }
标签:InternetSetOption,HTTP,C++,CONNECT,TIMEOUT,bRet,dwTimeout,HttpSendRequest From: https://www.cnblogs.com/wwssgg/p/16857709.html