Trying to determine if RestSharp's AddParameter
method adds the parameter to the body or the header of the request for Method POST
.
var request = new RestRequest("/token", Method.POST);
request.RequestFormat = DataFormat.Json;
request.AddParameter("grant_type", "password");
request.AddParameter("client_id", client_id);
request.AddParameter("client_secret", client_secret);
request.AddParameter("username", username);
request.AddParameter("password", password);
If it sends in the header, our API calls will begin to fail due to an upcoming change to the API provider.
How do I determine this?