This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class CoreTools | |
| { | |
| public static async Task<string> GetRedirectedUrl(string url) | |
| { | |
| //this allows you to set the settings so that we can get the redirect url | |
| var handler = new HttpClientHandler() | |
| { | |
| AllowAutoRedirect = false | |
| }; | |
| string redirectedUrl = null; |