Skip to content

Latest commit

 

History

History
68 lines (47 loc) · 1.6 KB

HttpQueryInfo.md

File metadata and controls

68 lines (47 loc) · 1.6 KB

Home

Function name : HttpQueryInfo

Group: Internet Functions (WinInet) - Library: wininet


Retrieves header information associated with an HTTP request.


Code examples:

Custom HttpRequest class (WinINet)

Declaration:

BOOL HttpQueryInfo(
	HINTERNET hRequest,
	DWORD dwInfoLevel,
	LPVOID lpvBuffer,
	LPDWORD lpdwBufferLength,
	LPDWORD lpdwIndex
);
  

FoxPro declaration:

DECLARE INTEGER HttpQueryInfo IN wininet;
	INTEGER  hRequest,;
	LONG     dwInfoLevel,;
	STRING @ lpvBuffer,;
	LONG   @ lpdwBufferLength,;
	LONG   @ lpdwIndex  

Parameters:

hRequest [in] Handle returned by HttpOpenRequest or InternetOpenUrl.

dwInfoLevel [in] Combination of an attribute to be retrieved and flags that modify the request. For a list of possible attribute and modifier values, see Query Info Flags.

lpvBuffer [in] Pointer to a buffer that receives the information. This parameter must not be NULL.

lpdwBufferLength [in] Pointer to a variable that contains the size 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.


Return value:

Returns TRUE if successful, or FALSE otherwise.


Comments:

Query Info Flags: The following lists contain the attributes and modifiers used by HttpQueryInfo and QueryInfo.