title: Writes file directly to an HTTP response output stream (without using any Download Managers like IDM)
body: <p>I'm going to write a file directly to an HTTP response, it works when I use Download Manager on my PC, but after disable download manager it doesn't work.</p>
  <pre><code>FileInfo file = new FileInfo(FilePath)
  context.Response.ClearContent();
  context.Response.ClearHeaders();
  context.Response.AddHeader(&quot;Content-Disposition&quot;, &quot;attachment; filename=&quot; + file.Name +&quot;;&quot;);
  context.Response.ContentType = &quot;application/x-zip-compressed&quot;;
  context.Response.TransmitFile(file.FullName);
  </code></pre>
  <p><a href="https://i.stack.imgur.com/J9DA4.jpg" rel="nofollow noreferrer">Response on browser</a></p>