title: Download chunked resource with wget?
body: <p>There's a sample ASP.NET project with this controller:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  
  public partial class _Default : System.Web.UI.Page
  {
     protected void Page_Load(object sender, EventArgs e)
     {
         Response.Write("test1234");
         Response.Clear();
         Response.Flush();
         Response.Write("test5");
         Response.End();
     }
  }
  </code></pre>
  
  <p>In the browser (Chrome 10) I see "test5" and 
      Transfer-Encoding:chunked</p>
  
  <p>When trying to download with wget (from the most recent Cygwin) I get</p>
  
  <pre><code>$ wget -S  --read-timeout=60 http://127.0.0.1/EmptyWebSite/test/
  --2011-04-05 23:25:51--  http://127.0.0.1/EmptyWebSite/test/
  Connecting to 127.0.0.1:80... connected.
  HTTP request sent, awaiting response...
    HTTP/1.1 200 OK
    Server: Microsoft-IIS/5.1
    Date: Tue, 05 Apr 2011 20:25:51 GMT
    X-Powered-By: ASP.NET
    X-AspNet-Version: 2.0.50727
    Cache-Control: private
    Content-Type: text/html
  Length: unspecified [text/html]
  Saving to: `index.html'
  
  [ &lt;=&gt;  ] 0           --.-K/s   in 0s
  </code></pre>
  
  <p>And the file is (obviously) empty</p>
  
  <p>What's going wrong? Can I download such a resource with wget / curl?</p>