title: Getting response from http postrequest
body: <p>I want to send http <code>POST</code> request to server. This request contains a header, posts a <code>json</code> object and gets the response. I am using this code:    </p>
  
  <pre><code> var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);   
   httpWebRequest.Accept = "application/json";   
   httpWebRequest.Method = "POST";
   using (var stream = await Task.Factory.FromAsync&lt;Stream&gt;  (httpWebRequest.BeginGetRequestStream, httpWebRequest.EndGetRequestStream, null)){      
       byte[] jsonAsBytes = Encoding.UTF8.GetBytes(jsonString);     
       await stream.WriteAsync(jsonAsBytes, 0, jsonAsBytes.Length);             
   }
  </code></pre>
  
  <p>I think that I succeeded in posting my request but I don't know how to get the response string.</p>