
My code is:
var client = new HttpClient { BaseAddress = new Uri("http://bf4stats.com") };
        client.DefaultRequestHeaders.Add("Referer", ":http://bf4stats.com/pc/Azezeil");
        client.DefaultRequestHeaders.Add("X-Requested-With", ": XMLHttpRequest");
        client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
        HttpResponseMessage response = client.PostAsync("/pc/Azezeil", new StringContent("{" + "\"" + "request" + "\"" + ":" + "\"" + "updatePlayer" + "\"" + "}", Encoding.UTF8, "application/json")).Result;
        string res = await response.Content.ReadAsStringAsync();
The response come failed 417. How to make a POST request with HttpClient or any thing works on Windows Store apps C#?
 
    