webclient.h
来自「BQYAHOO的Visual C++源代码」· C头文件 代码 · 共 47 行
H
47 行
#pragma once
#include "windows.h"
#include "wininet.h"
#include <string>
#include "xlog.h"
using namespace std;
class WebClient//类WebClient负责处理和雅虎中国的网络连接,登录和下载附件都是由它来实现
{
private:
DWORD CONNECT_FLAG;
string BeforLogInUrl;
private:
HINTERNET hsession;//会话
HINTERNET hconnect;//连接
HINTERNET hrequest;//请求
XLOG xlog;
public:
char response[10*10*10*1024];
unsigned long numberOfBytesRead;
char head[10*1024];
public:
bool BeforeLogIn();//进入登录页面
bool LogIn(const char * LogInUrl , const string UserName );//登录
bool InInBox(const string MailHostUrl);
bool InMail(const string MailUrl);
bool DownLoadFile(string FileSaveName,string DownLoadUrl); //下载附件
bool LogOut(string);//登出
inline void GetResponse();
inline void GetHead();
inline bool TestResponse();
bool MayBeIn;
public:
WebClient();
~WebClient();
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?