Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C++
Reference
Libraries Reference
MFC
Classes
CHttpFile Class
Member Functions
 CHttpFile::SendRequest
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
MFC Library Reference 
CHttpFile::SendRequest 

Call this member function to send a request to an HTTP server.

BOOL SendRequest(
   LPCTSTR pstrHeaders = NULL,
   DWORD dwHeadersLen = 0,
   LPVOID lpOptional = NULL,
   DWORD dwOptionalLen = 0 
);
BOOL SendRequest(
   CString& strHeaders,
   LPVOID lpOptional = NULL,
   DWORD dwOptionalLen = 0 
);

Parameters

pstrHeaders

A pointer to a string containing the name of the headers to send.

dwHeadersLen

The length of the headers identified by pstrHeaders.

lpOptional

Any optional data to send immediately after the request headers. This is generally used for POST and PUT operations. This can be NULL if there is no optional data to send.

dwOptionalLen

The length of lpOptional.

strHeaders

A string containing the name of the headers for the request being sent.

Nonzero if successful; otherwise 0. If the call fails, determine the cause of the failure by examining the thrown CInternetException object.

This method can throw exceptions of type CInternetException.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker