0

执行请求时是否可以防止任何重定向

var context = BrowsingContext.New(new Configuration().WithDefaultLoader().WithCookies());
var response = await context
                        .Configuration
                        .Services
                        .OfType<HttpRequester>()
                        .First()
                        .RequestAsync(
                            new Request
                            {
                                Address = AngleSharp.Url.Create(url),
                                Method = HttpMethod.Post,
                            },
                            CancellationToken.None);   

还是抓住他们?

4

0 回答 0