mirror of https://github.com/dahall/Vanara.git
Fixed overloads for HttpQueryInfo
parent
20bd7a40e1
commit
4c4657f0ab
|
@ -5053,8 +5053,10 @@ namespace Vanara.PInvoke
|
||||||
// DWORD_PTR dwContext );
|
// DWORD_PTR dwContext );
|
||||||
[DllImport(Lib.WinInet, SetLastError = true, CharSet = CharSet.Auto)]
|
[DllImport(Lib.WinInet, SetLastError = true, CharSet = CharSet.Auto)]
|
||||||
[PInvokeData("wininet.h", MSDNShortId = "caaff8e8-7db9-4d6d-8ba2-d8d19475173a")]
|
[PInvokeData("wininet.h", MSDNShortId = "caaff8e8-7db9-4d6d-8ba2-d8d19475173a")]
|
||||||
public static extern SafeHINTERNET HttpOpenRequest(HINTERNET hConnect, [Optional] string lpszVerb, string lpszObjectName, [Optional] string lpszVersion, [Optional] string lpszReferrer,
|
public static extern SafeHINTERNET HttpOpenRequest(HINTERNET hConnect, string lpszVerb = null, string lpszObjectName = "/",
|
||||||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(StringPtrArrayMarshaler), MarshalCookie = "Auto"), Optional] string[] lplpszAcceptTypes, [Optional] INTERNET_FLAG dwFlags, [Optional] IntPtr dwContext);
|
string lpszVersion = null, string lpszReferrer = null,
|
||||||
|
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(StringPtrArrayMarshaler), MarshalCookie = "Auto")] string[] lplpszAcceptTypes = null,
|
||||||
|
INTERNET_FLAG dwFlags = 0, IntPtr dwContext = default);
|
||||||
|
|
||||||
/// <summary>Retrieves header information associated with an HTTP request.</summary>
|
/// <summary>Retrieves header information associated with an HTTP request.</summary>
|
||||||
/// <param name="hRequest">A handle returned by a call to the HttpOpenRequest or InternetOpenUrl function.</param>
|
/// <param name="hRequest">A handle returned by a call to the HttpOpenRequest or InternetOpenUrl function.</param>
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue