部分代码如下: CInternetFile* pFile;
CInternetSession iHttpSession;
INTERNET_PROXY_INFO proxyinfo;
proxyinfo.dwAccessType = INTERNET_OPEN_TYPE_PROXY;
proxyinfo.lpszProxy = g_SysInfo.sProxyCurrent;
proxyinfo.lpszProxyBypass = NULL;
iHttpSession.SetOption(INTERNET_OPTION_PROXY,(LPVOID)&proxyinfo, sizeof(INTERNET_PROXY_INFO)); pFile = NULL; try
{
pFile = (CInternetFile*)iHttpSession.OpenURL("http://www.sina.com", 0, INTERNET_FLAG_TRANSFER_ASCII | INTERNET_FLAG_DONT_CACHE, NULL, 0);
................pFile->Read(&buf, len);
.................
无法获取正常的网页内容,问题出在哪里?请帮我看看,多谢!
CInternetSession iHttpSession;
INTERNET_PROXY_INFO proxyinfo;
proxyinfo.dwAccessType = INTERNET_OPEN_TYPE_PROXY;
proxyinfo.lpszProxy = g_SysInfo.sProxyCurrent;
proxyinfo.lpszProxyBypass = NULL;
iHttpSession.SetOption(INTERNET_OPTION_PROXY,(LPVOID)&proxyinfo, sizeof(INTERNET_PROXY_INFO)); pFile = NULL; try
{
pFile = (CInternetFile*)iHttpSession.OpenURL("http://www.sina.com", 0, INTERNET_FLAG_TRANSFER_ASCII | INTERNET_FLAG_DONT_CACHE, NULL, 0);
................pFile->Read(&buf, len);
.................
无法获取正常的网页内容,问题出在哪里?请帮我看看,多谢!
解决方案 »
- opengl中GLintPoint是未声明的标识符
- 一个窗口被拖动时,它的重绘由谁来完成呢?(拖动时没有wm_paint,窗口过程不管呀)
- 求一个VC小游戏
- towangk
- COM 继承问题
- 我怎么限定我的CEdit中只能输入一定个数的字符?
- 200 分求周长发的处理 bmp 图象的算法程序 (liweiliwei2ooo )
- :::...:::如何做出象FoxMail4的那种切分窗口
- 如何创建一个按钮,其风格为一个方格,有两种状态,凸或者凹。我创建了几个都是“x号”的?请高手指教!!!
- 关于线程内核对象句柄的简单问题
- ~~~~图片 边下载 边显示 如何实现?
- visual studio 2005 相关
myHttpFile=(CHttpFile*)mySession.OpenURL(url,1,INTERNET_FLAG_DONT_CACHE,NULL,0);
for(int i=0;i<20&&myHttpFile->ReadString(myData);i++)
{
strXMLReturn+=myData+"\r\n"; //因为每次只能读取一行,所以要循环读取数据
}
<h3> Welcome to the CoDeeN HTTP CDN Service! </h3>You are using CoDeeN content distribution network(CDN). <a
href="http://codeen.cs.princeton.edu">CoDeeN</a> is a pulling-based
HTTP content distribution network(CDN) deployed on <a
href="http://www.planet-lab.edu">PlanetLab</a> with the goal of
improving the Web performance.<p>
You see this page because you chose to use CoDeeN in some way. If
you don't want to surf through CoDeeN, please undo whatever step you
made to use CoDeeN. Please check your proxy setting at your browser,
or uninstall any anonymizer software which uses CoDeeN. By the way,
using Web anonymizer through CoDeeN will not work smoothly, and your
access to CoDeeN get blocked at any time.<p>
Finally, please <b>do not attempt to abuse our system</b>. For
security reasons, we closely monitor all the activities through CoDeeN
and log all the requests, and in case of abuse these may be used as
evidence in police investigation.
..............是不是我的网络设置有问题啊?