Install

Install-Package RestSharp

(or download)

Documentation

Get Started - All

Contributions welcome!

Discuss

RestSharp Google Group

Help and feature requests

Stay Updated

Follow @RestSharp

Subscribe to the RSS feed

101.1 Released

Get it on NuGet or GitHub downloads. Also, if you have a moment, I would appreciate your rating and review of the project on the NuGet gallery.

  • Updated JSON.NET to 4.0.2
  • IMPROVED: Windows Phone 7 now supported via NuGet (thanks to NuGet 1.2 and JSON.NET updates)
  • IMPROVED: References to JSON.NET and xUnit now done via NuGet (should resolve issue where there was an error with JSON.NET when installing RestSharp via NuGet)
  • FIXED: Async requests weren’t setting Accept header based on registered deserializers
  • FIXED: MonoTouch project was out of date (thanks kevinmcmahon!)
  • FIXED: Async requests that set Timeout value threw exception
  • FIXED: Content length is sometimes incorrect when using unicode characters in request body
  • FIXED: Timeout value only set in async requests when it does not equal 0

Posted April 22nd, 12:27 AM
Read more posts about Releases.

7 Comments - Join The Discussion
Link

  • Noah Heldman

    I did a fresh NuGet install, and I’m getting an error when I try to deserialize a response to JSON because it can’t find Json.NET, even though NuGet installed it and added a referece:

    “Could not load file or assembly ‘Newtonsoft.Json.Net35, Version=4.0.2.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.”

    In addition, the XmlSerializer does not appear to be deserializing xml attributes (my understanding is that I don’t need to make them with [XmlAttribute] (which is awesome by the way!)).

    Thanks for all your work on this!
    Noah

  • http://john-sheehan.com/blog John Sheehan

    I’m looking into this. Can’t figure out where the assemblies are
    different. I’ll update NuGet when it’s fixed.

  • http://profiles.google.com/byzantinegeneral Jamie Coates

    any update on the json serialization issue. I am experiencing the same problem

  • http://john-sheehan.com/blog John Sheehan

    Just pushed 101.2. Please update to that and let me know if that works or not. http://restsharp.org/101-2-released/

  • http://profiles.google.com/byzantinegeneral Jamie Coates

    Hi John,

    I have tried both the nuget package and the binary you made available (101.2). The NuGet package still fails but the download works as expected. I noticed that the NuGet package still includes the NewtonSoft.Json binary whilst the other download does not include it.

    When I add your binary I downloaded my app works correctly without including the json lib directly.

    It would be nice if the nuget package worked correctly as I tend to include your lib in lots of places across solution and its just really convenient to add lib reference. :)

    Regards,

    J

  • http://twitter.com/burkeholland Thomas Burke Holland

    John

    I had the same issue when pulling from NuGet, but downloading and building worked just fine.

  • Karsten

    Could you supply a small example of a PUT request using JSON? For some reason the content type seems to be XML even though I have set it to JSON.
    Thanks