- This library will be an alternative to System.Net.Http.HttpClient. This is the low level library that interacts with Curl via CurlThin.
- Originaly started because of some things curl would do that newer dotnet would not.
- Basic GET Request looks like this
var http = new nac.CurlHttpClient.http();
var result = http.get("http://httpbin.org/ip");
- It can also look like this
var http = new nac.CurlHttpClient.http("http://httpbin.org/ip");
var result = http.get();
- Basic Post FormPost method
var http = new nac.CurlHttpClient.http();
var result = http.post("http://httpbin.org/post",
requestBody: "fieldname1=fieldvalue1&fieldname2=fieldvalue2");