HttpClientHandler.MaxAutomaticRedirections Property


Gets or sets the maximum number of redirects that the handler follows.

 property int MaxAutomaticRedirections { int get(); void set(int value); };
public int MaxAutomaticRedirections { get; set; }
member this.MaxAutomaticRedirections : int with get, set
Public Property MaxAutomaticRedirections As Integer

Property Value


The maximum number of redirection responses that the handler follows. The default value is 50.


The MaxAutomaticRedirections property sets the maximum number of redirections for the request to follow if the AllowAutoRedirect property is true.

Applies to