title: HttpClient not reaching url
body: <p>I'm writing a WP8.1 app that reads and sends data through REST API.
  All of them work without problems excepts the "search" one.</p>
  
  <p>This API works in POST and I need to send a string in Json format defining my query. If I set only few filters, the REST API takes too long to respond. Therefore the HttpResponseMessage object has no success code and it returns a "NotFound" message, even if the web API is correcly runnning.</p>
  
  <p>If I try the same request via Postman it works correctly, but if I try it via SoapUi I get a "java.net.SocketTimeoutException: Read timed out" error message.</p>
  
  <p>In SoapUi I managed to extend timeout in order to get a response, but my C# code keeps on not working even if I set the TimeOut property to HttpClient object.</p>
  
  <p>Can someone please help me to resolve my problem?
  Thanks!</p>
  
  <p><strong>EDIT</strong>
  The code is really simple:</p>
  
  <pre><code>HttpClient client = new HttpClient();
  client.BaseAddress = new Uri(baseAddress);
  client.DefaultRequestHeaders.Accept.Clear();
  client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
  client.DefaultRequestHeaders.ExpectContinue = false;
  client.Timeout = TimeSpan.FromSeconds(300);
  
  HttpContent content = new StringContent(json, Encoding.Unicode, "application/json");
  HttpResponseMessage response = await client.PostAsync(uri, content));
  
  if (response.IsSuccessStatusCode)
  {
      string jsonResponse = await response.Content.ReadAsStringAsync();
  }
  </code></pre>