title: How to solve "Chunked body did not terminate properly with 0-sized chunk."?
body: <p>I have an RSS feed. When I browse to the feed with Fiddler Web Debugger open, Fiddler throws this error at me:</p>
  
  <pre><code>Chunked body did not terminate properly with 0-sized chunk.
  </code></pre>
  
  <p>The response from the server that triggered the error looks like this:</p>
  
  <pre><code>HTTP/1.1 200 OK
  Date: Tue, 22 Jan 2013 21:00:49 GMT
  Server: Microsoft-IIS/6.0
  X-Powered-By: ASP.NET
  X-AspNet-Version: 2.0.50727
  Cache-Control: private
  Content-Type: text/xml; charset=utf-8
  Content-Length: 30985
  
  &lt;rss version="2.0"&gt;
    &lt;channel&gt;
    ... etc
  </code></pre>
  
  <p>The owner of the RSS is reporting problems when trying to submit the site to RSS aggregators. </p>
  
  <p>I tried to validate the rss here: <a href="http://validator.w3.org/appc/" rel="nofollow">http://validator.w3.org/appc/</a>. The response was this:</p>
  
  <pre><code>IncompleteRead(30985 bytes read) (IncompleteRead; misconfigured server?)
  </code></pre>
  
  <p>However, if I browse to the rss and copy past the code into this validator: <a href="http://validator.w3.org/appc/#validate_by_input" rel="nofollow">http://validator.w3.org/appc/#validate_by_input</a>, then everything validates correctly.</p>
  
  <p>How do I correct this? This is a C# ASP.NET webforms project running on .NET 3.5 in IIS6.</p>
  
  <h2> Update </h2>
  
  <p>It appears that I was using Fiddler incorrectly. After unchcking the Decode option, here is the server response:</p>
  
  <pre><code>HTTP/1.1 200 OK
  Date: Tue, 22 Jan 2013 21:22:03 GMT
  Server: Microsoft-IIS/6.0
  X-Powered-By: ASP.NET
  X-AspNet-Version: 2.0.50727
  Transfer-Encoding: chunked
  Cache-Control: private
  Content-Type: text/xml; charset=utf-8
  
  7909
  &lt;rss version="2.0"&gt;
    &lt;channel&gt;
     ... etc
  </code></pre>