⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpcommand.h

📁 http发送文件头 可以设置cookie等。 还可以做比较复杂的通讯
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -