title: How to send request to the HTTP Header using the json webservice in windows store app
body: <p>I'm working on a windows store app where I am using a web service which has parameters for downloading videos that are given below.</p>
  
  <pre><code>[request addValue:Token Id forHTTPHeaderField:@"Authorization"];
  </code></pre>
  
  <p>Through log_in web services I get the access token which I have to pass as value in the  Authorization a request to the HTTP Header.</p>
  
  <pre><code>Token token="hgmgmhmhgm6dfgffdbfetgjhgkj4mhh8dghmge"
  </code></pre>
  
  <p>I have to send both these parameters with the web service given to me but I am unable to send them as I'm getting the error status code <code>404 unauthorized</code>.</p>
  
  <p>Here is my code:</p>
  
  <pre><code> System.Net.Http.HttpClient httpClient1 = new System.Net.Http.HttpClient();
          httpClient1.DefaultRequestHeaders.Date = DateTime.Now;
          httpClient1.DefaultRequestHeaders.Add("Authorization",acesstoken);
       var httpResponse1 = await httpClient.GetAsync("http://gbdfbbnbb@gfdh.co/appi/fdbfdses/3/videos");
          string vale = await httpResponse1.Content.ReadAsStringAsync();
          string responses = vale;
  </code></pre>
  
  <p>I know my code is wrong and I need to correct it. Help me with your valuable suggestions.</p>