-
-
[求助]如何使MFC不会在header中加入 Cache-Control: no-cache
-
发表于: 2008-4-11 16:07 3824
-
我正在写一个可以抓网页的软件
DWORD dwHttpRequestFlags =
INTERNET_FLAG_EXISTING_CONNECT | INTERNET_FLAG_NO_AUTO_REDIRECT
| INTERNET_FLAG_RELOAD;
m_pServer = m_pSession->GetHttpConnection(m_sServerName, dwHttpRequestFlags, m_nPort);
m_pFile = m_pServer->OpenRequest(m_nMethod,
m_sObject, NULL, 1, NULL, NULL, dwHttpRequestFlags);
跑起来是OK,可是MFC会在header中加入
Cache-Control: no-cache
导致某些网站联结失败,不知各位是否能指导我作何设定,
使MFC不在header中加入Cache-Control: no-cache
谢谢
DWORD dwHttpRequestFlags =
INTERNET_FLAG_EXISTING_CONNECT | INTERNET_FLAG_NO_AUTO_REDIRECT
| INTERNET_FLAG_RELOAD;
m_pServer = m_pSession->GetHttpConnection(m_sServerName, dwHttpRequestFlags, m_nPort);
m_pFile = m_pServer->OpenRequest(m_nMethod,
m_sObject, NULL, 1, NULL, NULL, dwHttpRequestFlags);
跑起来是OK,可是MFC会在header中加入
Cache-Control: no-cache
导致某些网站联结失败,不知各位是否能指导我作何设定,
使MFC不在header中加入Cache-Control: no-cache
谢谢
赞赏
赞赏
雪币:
留言: