2019-07-28 10:31:56 +08:00
|
|
|
|
// http_clientDlg.h : ͷ<>ļ<EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
#include "HttpClient.h"
|
|
|
|
|
#include "MeterBar.h"
|
|
|
|
|
#include "lib_protocol.h"
|
|
|
|
|
#include "afxwin.h"
|
|
|
|
|
#include "afxext.h"
|
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// Chttp_clientDlg <20>Ի<EFBFBD><D4BB><EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
class Chttp_clientDlg : public CDialog
|
|
|
|
|
{
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <20><><EFBFBD><EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
public:
|
2019-07-28 10:31:56 +08:00
|
|
|
|
Chttp_clientDlg(CWnd* pParent = NULL); // <20><><EFBFBD><D7BC><EFBFBD>캯<EFBFBD><ECBAAF>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
enum { IDD = IDD_HTTP_CLIENT_DIALOG };
|
|
|
|
|
|
|
|
|
|
protected:
|
2019-07-28 10:31:56 +08:00
|
|
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// ʵ<><CAB5>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
protected:
|
|
|
|
|
HICON m_hIcon;
|
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <20><><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD>Ϣӳ<CFA2>亯<EFBFBD><E4BAAF>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
virtual BOOL OnInitDialog();
|
|
|
|
|
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
|
|
|
|
|
afx_msg void OnPaint();
|
|
|
|
|
afx_msg HCURSOR OnQueryDragIcon();
|
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
|
public:
|
|
|
|
|
afx_msg void OnBnClickedButtonBrowser();
|
|
|
|
|
afx_msg void OnBnClickedButtonOption();
|
|
|
|
|
afx_msg void OnBnClickedButtonGet();
|
|
|
|
|
afx_msg LRESULT OnWriteDisplay(WPARAM wParam, LPARAM lParam);
|
|
|
|
|
private:
|
|
|
|
|
CString m_sReqUrl;
|
|
|
|
|
CString m_sLocalFile;
|
|
|
|
|
CHttpClient m_hClient;
|
|
|
|
|
CEdit m_reqCtlEdit;
|
|
|
|
|
CEdit m_resCtlEdit;
|
|
|
|
|
CEdit m_resBodyCtlEdit;
|
|
|
|
|
BOOL m_bHttp11;
|
|
|
|
|
BOOL m_bZip;
|
|
|
|
|
BOOL m_bKeepAlive;
|
|
|
|
|
BOOL m_bPostMethod;
|
|
|
|
|
CString m_sBody;
|
|
|
|
|
CString m_sAccept;
|
|
|
|
|
CString m_sCType;
|
|
|
|
|
|
|
|
|
|
http_off_t m_nContentLength;
|
|
|
|
|
http_off_t m_nDownLen;
|
|
|
|
|
|
|
|
|
|
void ClearWinText(void);
|
|
|
|
|
public:
|
|
|
|
|
afx_msg void OnBnClickedButtonClear();
|
|
|
|
|
private:
|
|
|
|
|
CString m_sHttpHdrAppend;
|
|
|
|
|
CString m_sServerAddr;
|
|
|
|
|
BOOL m_bUseAddr;
|
|
|
|
|
protected:
|
|
|
|
|
CMeterBar m_wndMeterBar;
|
|
|
|
|
//CStatusBarCtrl m_wndMeterBar;
|
|
|
|
|
public:
|
|
|
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
|
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
|
|
|
private:
|
|
|
|
|
BOOL m_bForwardAuto;
|
|
|
|
|
UINT m_nMaxTry;
|
|
|
|
|
};
|