Skip to content

WinoGarcia/Extreme.Net.Core

 
 

Repository files navigation

Extreme.Net.Core

beta

NuGet version

Extreme.Net.Core - provides Http(s), Socks4a, Socks4, Socks5, Chain proxy for .NetCore2.0 HttpClient class

Extreme.Net.Core it's a fork of Extreme.Net

Installation

Install via NuGet

PM > Install-Package Extreme.Net.Core

Examples

    var socksProxy = new Socks5ProxyClient("127.0.0.1", 3128);

    var handler = new ProxyHandler(socksProxy);
    var client = new HttpClient(handler);

    var request = new HttpRequestMessage();
	request.Method = HttpMethod.Post;

    var parameters = new Dictionary<string, string> { { "param1", "1" }, { "param2", "2" } };
    var encodedContent = new FormUrlEncodedContent(parameters);

    var response = await client.PostAsync("http://httpbin.org/post", encodedContent);
    var content  = await response.Content.ReadAsStringAsync();

About

Extreme.Net.Core - http class library for .NetCore

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%