Get 301 Moved Location

Processing HTTP 301 HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(links[i]);
myHttpWebRequest.AllowAutoRedirect = false;
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
Console.WriteLine(myHttpWebResponse.GetResponseHeader("Location"));
myHttpWebResponse.Close();

Verify Http URI public static bool IsValidHttpUri(string uriString)
{
    Uri test = null;
    return Uri.TryCreate(uriString, UriKind.Absolute, out test) && test.Scheme == "http";
}

.net - Using WebClient in C# is there a way to get the URL of a site after being redirected? - Stack Overflow
c# - RegEx to detect syntactically correct URL - Stack Overflow