Why doesn't WebRequest.AllowAutoRedirect redirect the initial url to the correct download url?
问题 I am testing a url which is expected to redirect automatically to file download url. But it doesn't be redirected to the correct url that is https://s51.workupload.com/download/zMR4vIPW. How can I make it works? public static void Main() { string url = "https://workupload.com/start/zMR4vIPW"; HttpWebRequest req = WebRequest.Create(url) as HttpWebRequest; req.UserAgent = "Mozilla"; //Dummy useragent assigned HttpWebResponse response = req.GetResponse() as HttpWebResponse; //Expected url is