Skip to content

High level library with NewtonSoft Json, and URL Building. Uses the low level CurlHttpClient.LowLevel library to interact with curl to make the http calls

Notifications You must be signed in to change notification settings

NathanielACollier/dotnetLib_nac.CurlHttpClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Curl HttpClient

  • This library will be an alternative to System.Net.Http.HttpClient.
  • Originaly started because of some things curl would do that newer dotnet would not.

Examples

GET

  • Basic GET Request looks like this
    var http = new nac.CurlHttpClient.HttpClient();
    var jsonStr = await http.getJSONAsync<string>("http://httpbin.org/ip");

POST

  • Basic Post
    var http = new nac.CurlHttpClient.HttpClient();
    var result = await lib.shared.http.postJSONAsync<string>("http://httpbin.org/post",
        data: new
        {
            Param1 = "Apple",
            Param2 = "Orange"
        });

About

High level library with NewtonSoft Json, and URL Building. Uses the low level CurlHttpClient.LowLevel library to interact with curl to make the http calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages