title: Truncated Response for Web page with 0x00 character
body: <p>I write a program wich download web pages. It works fine for most of web pages but i have found some pages where it doesn't work.</p>
  
  <p>These pages contains 0x00 characters.</p>
  
  <p>I'm able to read page content until this character, but not the content after.</p>
  
  <p>I use this part of code to read the response :</p>
  
  <pre><code>IAsyncResult ar = null;
  HttpWebResponse resp = null;
  Stream responseStream = null;
  String content = null;
  ...
  resp = (HttpWebResponse)req.EndGetResponse(ar);
  responseStream = resp.GetResponseStream();
  StreamReader sr = new StreamReader(responseStream, Encoding.UTF8);
  content = sr.ReadToEnd();
  </code></pre>
  
  <p>In this example i use asynchronous request, but i try with synchronous one and i have the same probleme.</p>
  
  <p>I also try this with the same result :</p>
  
  <pre><code>HttpWebResponse resp = null;
  Stream responseStream = null;
  String content = new String();
  ...
  responseStream = resp.GetResponseStream();
  byte[] buffer = new byte[4096];
  int bytesRead = 1;
  while (bytesRead &gt; 0)
  {
      bytesRead = responseStream.Read(buffer, 0, 4096);
      content += Encoding.UTF8.GetString(buffer, 0, bytesRead);
  }
  </code></pre>
  
  <p>for example, the problem occurs for this url <a href="http://www.daz3d.com/i/search/searchsub?sstring=ps_tx1662b&amp;_m=dps_tx1662b" rel="nofollow noreferrer">http://www.daz3d.com/i/search/searchsub?sstring=ps_tx1662b&amp;_m=dps_tx1662b</a></p>
  
  <p>thanks for yours responses</p>
  
  <p>Euyeusu</p>