Group: Internet Functions (WinInet) - Library: wininet
Custom HttpRequest class (WinINet)
BOOL WINAPI HttpSendRequest(
HINTERNET hRequest,
LPCTSTR lpszHeaders,
DWORD dwHeadersLength,
LPVOID lpOptional,
DWORD dwOptionalLength
);
DECLARE INTEGER HttpSendRequest IN wininet;
INTEGER hRequest,;
STRING @lpszHeaders,;
INTEGER dwHeadersLength,;
STRING @lpOptional,;
INTEGER dwOptionalLength
hRequest [in] Open HTTP request handle returned by HttpOpenRequest.
lpszHeaders [in] Long pointer to null-terminated strings that contain additional headers to be appended to the request. This parameter can be NULL if there are no additional headers to append.
dwHeadersLength [in] Specifies the length, in characters, of the additional headers.
lpOptional [in] Long pointer to any optional data to send immediately after the request headers.
dwOptionalLength [in] Specifies the length, in bytes, of the optional data.
TRUE indicates success. FALSE indicates failure.
See also: HttpOpenRequest, InternetQueryDataAvailable, InternetReadFile, InternetCloseHandle.