Group: HTTP Functions (WinHTTP) - Library: winhttp
Custom HttpRequest class (WinHTTP)
BOOL WinHttpQueryHeaders(
HINTERNET hRequest,
DWORD dwInfoLevel,
LPCWSTR pwszName,
LPVOID lpBuffer,
LPDWORD lpdwBufferLength,
LPDWORD lpdwIndex
); DECLARE INTEGER WinHttpQueryHeaders IN winhttp;
INTEGER hRequest,;
INTEGER dwInfoLevel,;
INTEGER pwszName,;
STRING @ lpBuffer,;
INTEGER @ lpdwBufLen,;
INTEGER lpdwIndex
hRequest [in] HINTERNET request handle returned by WinHttpOpenRequest.
dwInfoLevel [in] Value of type DWORD that specifies a combination of attribute and modifier flags.
pwszName [in, optional] Pointer to a string that contains the header name.
lpBuffer [out] Pointer to the buffer that receives the information.
lpdwBufferLength [in, out] Pointer to a value of type DWORD that specifies the length of the data buffer, in bytes.
lpdwIndex [in, out] Pointer to a zero-based header index used to enumerate multiple headers with the same name.
Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError.
Home