c# files downloaded with httpwebrequest and cookies get corrupted
问题 I am trying to make a program which is able to download files with URI(URL) using httpwebrequest and cookies(for credential information to keep login status). I can download files with following code but files get corrupted after being downloaded. when I download xlsx file(on the web page) into text file at local drive, I see some part of numbers and words from an original file in a corrupted file, therefore I assume I have reached to the right file. however, when I download xlsx file(on the