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.
// Using this URL due to: https://learn.microsoft.com/en-us/xamarin/cross-platform/deploy-test/connect-to-local-web-services#android
var client = new RestClient("http://10.0.2.2:51811/api/");
var request = new RestRequest("Ruta", Method.GET);
var response = client.Execute(request);
I was wondering if this could be related with the headers? Also breakpoints inside my server solution do not seem to be hit
Already tried:
var client = new RestClient("http://10.0.2.2:51811/api/");
var request = new RestRequest("Ruta", DataFormat.Json);
var response = client.Get(request);