Purpose
Opens an HTTP connection.
Syntax
MIOpenRequest( ByVal hConnection As CHttpConnection,
ByVal nVerb As Integer, ByVal strObjectName As String
) As CHttpFile
hConnection is a CHttpConnection handle.
nVerb is a number associated with the HTTP request type. Can be one of the following:
HTTP_VERB_POST
HTTP_VERB_GET
HTTP_VERB_HEAD
HTTP_VERB_PUT
HTTP_VERB_LINK
HTTP_VERB_DELETE
HTTP_VERB_UNLINK
strObjectName is a string containing the target object of the specified verb. This is generally a file name, an executable module, or a search specifier.
Return Value
A handle to a CHttpFile object requested. If the call fails, Null is returned. To determine the cause of the failure, call the MIGetErrorMessage() function.
Description
This function opens an HTTP connection and returns a handle to a CHttpFile object, which provides services requesting and reading files on an HTTP server. If your Internet session reads data from an HTTP server, you must get a handle to CHttpFile object.
The caller has to dispose of the handle by calling MICloseHttpFile() procedure when the handle is no longer in use.