title: 400-BadRequest while call rest api of azure Web App
body: <pre><code> var client = new HttpClient();
   client.DefaultRequestHeaders.Add("x-ms-version", "2016-05-31");
   var content = new FormUrlEncodedContent(new KeyValuePair&lt;string, string&gt;[]
   {
      new KeyValuePair&lt;string, string&gt;("api-version", "2016-08-01")
   });
   content.Headers.ContentType = new MediaTypeHeaderValue("application/xml");
   var response = client.PostAsync("https://management.azure.com/subscriptions/SuscriptionID/resourceGroups/Default-Web-SoutheastAsia/providers/Microsoft.Web/sites/MyAppName/stop?", content);
  </code></pre>
  
  <p>This is how I make a call to Azure WebApp rest api but I am getting statuscode : BadRequest</p>