how to handle redirect from http response in c# code ?
- by dotnetcoder
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.
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.
thanks for the help.