Click here to Skip to main content
15,892,927 members
Articles / Desktop Programming / MFC

CHttpClient - A Helper Class Using WinInet

Rate me:
Please Sign up or sign in to vote.
4.96/5 (59 votes)
10 Aug 20073 min read 487.8K   24.9K   163  
A C++ class which helps you to interact with a HTTP web server.
/*!
 * \file	stdafx.h
 * \brief	A precompiled header file for the HttpClient component edition.
 * \author	Jo Hyeong-ryeol
 * \since	2004.10.17
 * \version	$LastChangedRevision: 92 $
 *			$LastChangedDate: 2006-01-30 17:11:59 +0900 (월, 30 1 2006) $
 * 
 * This file is a precompiled header file for the HttpClient component edition.
 * \n\n
 * Copyright &copy; 2006 by <a href="mailto:hyeongryeol@gmail.com">Jo Hyeong-ryeol</a>\n
 * Permission to copy, use, modify, sell and distribute this software is
 * granted provided this copyright notice appears in all copies.
 * This software is provided "as is" without express or implied warranty,
 * and with no claim as to its suitability for any purpose.
 */
#pragma once

#ifndef STRICT
#define STRICT
#endif

// 
// 
#ifndef WINVER				// 
#define WINVER 0x0400		// 
#endif

#ifndef _WIN32_WINNT		// 
#define _WIN32_WINNT 0x0400	// 
#endif						

#ifndef _WIN32_WINDOWS		// 
#define _WIN32_WINDOWS 0x0410 // 
#endif

#ifndef _WIN32_IE			// 
#define _WIN32_IE 0x0400	// 
#endif

#define _ATL_APARTMENT_THREADED
#define _ATL_NO_AUTOMATIC_NAMESPACE

#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS	// 

// 
#define _ATL_ALL_WARNINGS


#include "resource.h"
#include <atlbase.h>
#include <atlcom.h>
#include <objsafe.h>		// For the category map

#include "HttpClientHeader.h"

using namespace ATL;

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer
Korea (Republic of) Korea (Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions