如何在 Windows Mobile 2005 上禁用 http 请求中的缓存?
我使用 Visual Studio 2008(C++ 智能设备应用程序)。 我已成功建立连接并发送请求。但我不知道如何禁用缓存(它不起作用或停止应用程序作为异常。 我无法使用调试,因为我需要与 ms 设备中心断开连接(因为某些互联网端口仅通过 wi-fi 直接工作。
大致代码:
CInternetSession session = ...;
CInternetConnection *pConnection = ...;
CHttpFile *pFile = ...;
pConnection = session.GetHttpConnection(server, port);
pFile = pConnection->OpenRequest(CHttpConnection::HTTP_VERB_GET, requestString);
pFile->SendRequest();
PS 主要问题是服务器必须拒绝两个类似的请求。但它接受如果它们是一一发送的(没有从我的程序退出)。
I use Visual Studio 2008 (C++ smart device application).
I have successfully established the connection and sent requests. But I don't know how to disable the caching (it doesn't work or stops the application as with an exception.
I cannot use the debugging because I need to disconnect from ms device center (because of some internet ports are working directly via wi-fi only.
An approximate code:
CInternetSession session = ...;
CInternetConnection *pConnection = ...;
CHttpFile *pFile = ...;
pConnection = session.GetHttpConnection(server, port);
pFile = pConnection->OpenRequest(CHttpConnection::HTTP_VERB_GET, requestString);
pFile->SendRequest();
P.S. The main issue is that server must reject two similar requests. But it accepts with them if they are sent one by one (without an exit from my program).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经找到原因了。 Visual Studio中的调试器不支持程序员使用INTERNET_FLAG_RELOAD等标志时的调试
I have found the reason. The debugger in visual studio doesn't support the debugging when programmer uses flags such as INTERNET_FLAG_RELOAD