Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool DownloadFeed()
- {
- string user = "xxx";
- string password = "pwd";
- WebClient web = new WebClient();
- System.Net.WebClient wc = new System.Net.WebClient();
- wc.Credentials = new System.Net.NetworkCredential(user, password);
- System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
- wc.DownloadFile(@"https://Entered RSS Feed URL here",
- @"H:importTest.xml");
- return true;
- }
Add Comment
Please, Sign In to add comment