how to handle redirect from http response in c# code?
<p>I have a http request call that return a url .
If I run this url in IE it returns a page that redirects to a another page and downloads the excel file.</p>

<p>How can I abstract this whole process in a c# Api tha will deal with http request + response + redirect + file_downlaod in a method and evetually return the file or the file stream.</p>

<p>thanks for the help.</p>
