Top "Restsharp" questions

RestSharp is a simple to use REST client library for .NET

Persistent HTTP Connection with RestSharp

I am using RestSharp to consume a REST web service and will be making a large volume of calls in …

http rest http-headers keep-alive restsharp
Dynamically deserializing to a property in RestSharp

I am playing with the Harvest API and I'm trying to automatically map the entities as easy as possible, unfortunately …

c# restsharp
Rest Sharp - 406 Error - No match for accept header

I'm getting a 406 error when trying to use RestSharp to post a request to a third-party application. I'm new to …

c# rest restsharp http-status-code-406
PUT request results in 400 Bad Request

I am trying to do a PUT request to a Web API method using HttpClient. An almost identical POST request …

c# asp.net-web-api restsharp http-status-code-400 dotnet-httpclient
RestSharp: How to skip serializing null values to JSON?

RestSharp's built-in JSON serializer serializes all of an object's properties, even if they're null or otherwise the default value. How …

json serialization restsharp
Should RestClient be singleton or new for every request

ASP.Net HttpClient could dispose and a lot of articles say you should use the singleton pattern to use it …

c# asp.net restsharp
Converting code from RestSharp to HttpClient

Could someone please help me convert this ASP .Net Core example (to be used in my Web Api to consume …

c# restsharp asp.net-core-webapi asp.net-core-1.1
RestSharp: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server

I am using RestSharp as the underlying HTTP client library to make a stress/throughput test client on a black …

restsharp keep-alive throughput
RestSharp RestRequest.AddBody not using Newton.Json attributes

var obj = new MyObject(); I am having an issue getting RestSharp RestRequest.AddBody(obj); to serialize the object correctly. class …

c# restsharp
How can I deserialize Xml list using Restsharp?

I have an xml like this <?xml version="1.0" encoding="utf-8"?> <xml> <item> <accountid&…

c# rest restsharp