title: Do not encode parameters in RestSharp
body: <p>I am using RestSharp to access a RubyOnRails API.
  As you might know, RoR likes when the parameters names are in the form <code>model_name[property]</code>. RestSharp, on the other hand, does not like it.</p>
  
  <p>Fiddler says I send this to the server :</p>
  
  <pre><code>user%5Bemail%5D=user%40email.com&amp;user%5Bpassword%5D=test
  </code></pre>
  
  <p>It looks like R# encodes both the parameters and values when it sends the data (unlike Curl, which looks like it encodes selectively).
  While that's fine most of the time I guess, in this particular case, it makes the API return a 401 because it doesn't understand the parameters.</p>
  
  <p>Is it possible to ask R# to not encode the request's parameters ?</p>
  
  <p>Thank you !</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Ok, in the R# sources, I found the method RestClient.EncodeParameters, so it looks like the parameter's name is always encoded. I guess I will have to fork it :(</p>