title: RestSharp GET bad request
body: <p>I have been dealing with this problem for a few days, currently I have a endpoint which works fine in postman but in my xamarin app it keeps returning bad request even though the resource is fine.</p>
  <pre class="lang-cs prettyprint-override"><code>// Using this URL due to: https://docs.microsoft.com/en-us/xamarin/cross-platform/deploy-test/connect-to-local-web-services#android
  var client = new RestClient(&quot;http://10.0.2.2:51811/api/&quot;);
  var request = new RestRequest(&quot;Ruta&quot;, Method.GET);   
  var response = client.Execute(request);
  </code></pre>
  <p>I was wondering if this could be related with the headers? Also breakpoints inside my server solution do not seem to be hit</p>
  <p>Already tried:</p>
  <pre class="lang-cs prettyprint-override"><code>var client = new RestClient(&quot;http://10.0.2.2:51811/api/&quot;);
  var request = new RestRequest(&quot;Ruta&quot;, DataFormat.Json);          
  var response = client.Get(request);
  </code></pre>