WinHttpQueryHeaders (winhttp)
Last changed: -166.70.146.22

.
Summary
The WinHttpQueryHeaders function retrieves header information associated with an HTTP request.

C# Signature:

[DllImport("winhttp.dll", SetLastError=true)]
static extern bool WinHttpQueryHeaders(int lngHttpRequest, int lngInfoLevel, [MarshalAs(UnmanagedType.LPWStr)] string pwszHeaderName, StringBuilder buffer, ref int lngBufferLength, ref long lngIndex);

VB Signature:

Declare Function WinHttpQueryHeaders Lib "winhttp.dll" (ByVal hRequest As IntPtr, ByVal dwInfoLevel As Integer, ByVal pwszName As String, ByVal buffer As Byte(), ByRef lpdwBufferLength As Integer, ByRef lpdwIndex As Integer) As Boolean

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation