Purpose
Sends a request to an HTTP server.
Syntax
MISendRequest( ByVal hFile As CHttpFile, ByVal strHeaders As String,
ByVal dwHeadersLen As Integer, ByVal strOptional As String,
ByVal dwOptionalLen As Integer, ByVal bAuthenticate As SmallInt
As SmallInt
hFile is a CHttpFile handle.
strHeaders is a string containing the name of the headers to send.
dwHeadersLen is the length of the headers identified by strHeaders.
strOptional is any optional data to send immediately after the request headers. This is generally used for POST and PUT operations. This can be empty if there is no optional data to send.
dwOptionalLen is the length of strOptional.
bAuthenticate indicates whether to check authentication or not.
Return Value
Nonzero if successful; otherwise 0. To determine the cause of the failure, call the MIGetErrorMessage() function.
Description
This function sends a request to an HTTP server.