CHttpFile::AddRequestHeaders

This method adds one or more HTTP request headers to the HTTP request handle.

At a Glance

Header file: Afxinet.h
Platforms: Palm-size PC, H/PC Pro
Windows CE versions: 2.10 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL AddRequestHeaders( LPCTSTR pstrHeaders,
DWORD dwFlags = HTTP_ADDREQ_FLAG_ADD_IF_NEW,
int dwHeadersLen = -1 );

BOOL AddRequestHeaders( CString& str,
DWORD dwFlags = HTTP_ADDREQ_FLAG_ADD_IF_NEW );