CHttpFile Class
Provides the functionality to request and read files on an HTTP server.
class CHttpFile : public CInternetFile
Members
Protected Constructors
Name |
Description |
---|---|
Creates a CHttpFile object. |
Public Methods
Name |
Description |
---|---|
Adds headers to the request sent to an HTTP server. |
|
Ends a request sent to an HTTP server with the SendRequestEx member function. |
|
Gets the URL for the specified file. |
|
Gets the target object of the verb in a request to an HTTP server. |
|
Gets the verb that was used in a request to an HTTP server. |
|
Returns the response or request headers from the HTTP server. |
|
Retrieves the status code associated with an HTTP request and places it in the supplied dwStatusCode parameter. |
|
Sends a request to an HTTP server. |
|
Sends a request to an HTTP server using the Write or WriteString methods of CInternetFile. |
Remarks
If your Internet session reads data from an HTTP server, you must create an instance of CHttpFile.
To learn more about how CHttpFile works with the other MFC Internet classes, see the article Internet Programming with WinInet.
Inheritance Hierarchy
CHttpFile
Requirements
Header: afxinet.h