title: Want to pass header field through rest api in windows phone application
body: <p>I am having a issue in solving REST api call in windows phone application. 
  The situation is something : 
  I want to Pass two parameter named here "session_token" and "userid" as header in rest api call i am using the following code but the expected output is not matched with the postman out put (attached in screen shot)</p>
  
  <p>I have the following code</p>
  
  <pre><code>using (var client = new HttpClient())
  {
      client.BaseAddress = new Uri(Connection);
      client.DefaultRequestHeaders.Accept.Clear();
      client.DefaultRequestHeaders.TryAddWithoutValidation("Content-ype", "application/x-www-form-urlencoded");
      client.DefaultRequestHeaders.TryAddWithoutValidation("session_token", "sdfsffsdfsdffsfsdfsdfsdfsdf");
      client.DefaultRequestHeaders.TryAddWithoutValidation("userid", "sdfsdfsdfsdfsdfsdd");
  
      var postData = new List&lt;KeyValuePair&lt;string, string&gt;&gt;();
      postData.Add(new KeyValuePair&lt;string, string&gt;("changepasswordinput", "{\"oldpassword\":\"sdfsdfdf\",\"newpassword\":\"sdfsdfsdf\"}"));
      HttpContent content = new FormUrlEncodedContent(postData);
  
  
      HttpResponseMessage response = await client.PostAsync("changepassword", content);
      if (response.IsSuccessStatusCode)
      {
          var outputstring = await response.Content.ReadAsStringAsync();
          responseBaseClass = await response.Content.ReadAsAsync&lt;ResponseBaseClass&gt;();
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/UGxQh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UGxQh.png" alt="Chrome Postman Screenshot1"></a></p>
  
  <p><a href="https://i.stack.imgur.com/4nXeB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4nXeB.png" alt="Chrome Postman Screenshot1"></a></p>
  
  <p>Please tell me where i am doing wrong. 
  Thanks in advance.</p>