Click here to Skip to main content
15,893,564 members
Articles / Desktop Programming / MFC

WWW (HTTP/HTTPS/FTP) Client using WININET

Rate me:
Please Sign up or sign in to vote.
4.04/5 (29 votes)
3 May 2004CPOL 316.3K   10.8K   95  
Synchronized/asynchronized WWW client: HTTP/HTTPS GET, POST, POST multiparts/form-data supported. FTP GET FILE, PUT FILE supported too.
// HttpAnalyzerView.h : interface of the CHttpAnalyzerView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_HTTPANALYZERVIEW_H__A7BED3D8_14C0_4D38_ADCB_A2B0CBA2D9A8__INCLUDED_)
#define AFX_HTTPANALYZERVIEW_H__A7BED3D8_14C0_4D38_ADCB_A2B0CBA2D9A8__INCLUDED_

#include "w3c.h"
#include "HttpAnalyzerDoc.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CHttpAnalyzerView : public CHtmlView {
public:
	void doShow();
protected: // create from serialization only
	CHttpAnalyzerView();
	DECLARE_DYNCREATE(CHttpAnalyzerView)

// Attributes
public:
	CHttpAnalyzerDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHttpAnalyzerView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CHttpAnalyzerView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CHttpAnalyzerView)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	W3Client *_pclient;
};

#ifndef _DEBUG  // debug version in HttpAnalyzerView.cpp
inline CHttpAnalyzerDoc* CHttpAnalyzerView::GetDocument()
   { return (CHttpAnalyzerDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_HTTPANALYZERVIEW_H__A7BED3D8_14C0_4D38_ADCB_A2B0CBA2D9A8__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Korea (Republic of) Korea (Republic of)
Poke tongue | ;-P

Comments and Discussions