httpcommand.h
来自「http发送文件头 可以设置cookie等。 还可以做比较复杂的通讯」· C头文件 代码 · 共 31 行
H
31 行
#pragma once
#include <windows.h>
#include <wininet.h>
#include <atlcoll.h>
class CHTTPCommand
{
private:
HINTERNET m_hConnection;
HINTERNET m_hSession;
CAtlMap<CString, CString> m_Attributes;
CString m_Body;
private:
CString AttributesToString();
public:
CHTTPCommand(HINTERNET hConnection, bool bPresetAttributes = true);
virtual ~CHTTPCommand(void);
void SetRequestAttribute(CString sName, CString sValue);
int Execute(CString sUrl, bool bAutoFlush = true);
CString GetResponseAttribute(CString sName);
CString GetBody();
void Close();
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?