title: windows store app 8.1 httpclient request failes in local private network
body: <p>http request to receive json fails in private network or even in same system server set with xamp it is working fine with public networks over internet.</p>
  
  <p>i have given internet client&amp;server , private networks capabilities in appxmanifest </p>
  
  <p>code:</p>
  
  <pre><code>public static async Task&lt;string&gt; GetStringfromUrl(string url)
      {
  
          var httpClientHandler = new HttpClientHandler();
          httpClientHandler.Credentials = new System.Net.NetworkCredential(GlobalVariables.Web_AccountName,GlobalVariables.Web_AccountPassword);
  
          HttpClient httpClient = new HttpClient(httpClientHandler);
  
  
  
          try
          {
              string responseBodyAsText;
  
              HttpResponseMessage response = await httpClient.GetAsync(url);
              response.EnsureSuccessStatusCode();
              responseBodyAsText = await response.Content.ReadAsStringAsync();
  
              return responseBodyAsText;
  
          }
  
          catch(Exception ex)
          {
              System.Diagnostics.Debug.WriteLine(ex.Message +"/n" + ex.InnerException);
              return null;
          }
      }
  </code></pre>
  
  <p>in private network it shows authorization exception ,in same system localhost it doesnt pass the line of code.while works all fine in public internet 
  please help</p>