The library allows that you can use HttpWebRequest class like WinHttp style using C# and VB.NET.
C#:
static void main(string[] args)
{
WinHttpRequest whttp = new WinHttpRequest();
whttp.Open("GET", "https://www.google.co.kr", true);
whttp.Send().GetAwaiter().GetResult();
Console.WriteLine(whttp.ResponseText);
}VB.NET:
Sub Main()
Dim wHttp As WinHttpRequest = New WinHttpRequest
wHttp.Open("GET", "https://www.google.co.kr")
wHttp.Send()
Console.WriteLine(wHttp.ResponseText)
End Sub| Name | Return Type | Implemented |
|---|---|---|
| Open | void | Yes |
| Send | void | Yes |
| SetRequestHeader | void | Yes |
| GetResponseHeader | string | Yes |
| GetResponseHeaders | string | Yes |
| Abort | void | Yes |
| SetAutoLogonPolicy | void | No |
| SetClientCertificate | void | No |
| SetProxy | void | No |
| SetTimeouts | void | No |
| WaitForResponse | bool | No |
| Name | Return Type | Implemented |
|---|---|---|
| Responsebody | byte[] | Yes |
| ResponseStream | Stream | Yes |
| ResponseText | string | Yes |
| Status | int | Yes |
| StatusText | string | Yes |
| Option | object | No |
| Name | Implemented |
|---|---|
| OnError | No |
| OnResponseDataAvailable | No |
| OnResponseStart | No |
| OnResponseFinished | Yes |