干得好
var handler = new HttpClientHandler {AllowAutoRedirect = false}; var client = new HttpClient(handler); client.DefaultRequestHeaders.Add("User-Agent","Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)");