AllowAutoRedirect Property (HttpUpload)
Gets or sets a value that indicates whether the request should follow redirection responses.
'Declaration
Public Property AllowAutoRedirect As Boolean
public bool AllowAutoRedirect { get; set; }
public: __property bool get_AllowAutoRedirect();
public: __property void set_AllowAutoRedirect(
bool
);
public:
property bool AllowAutoRedirect {
bool get();
void set(bool );
}
Property Value
true if the request should automatically follow redirection responses from the Internet resource; otherwise false. Default value is true.
Set AllowAutoRedirect to true if you want redirect the request automatically to the new location of the resource. The maximum number of redirections can be set with the MaximumAutomaticRedirections property.
If AllowAutoRedirect is set to false all responses with an HTTP status code from 300 to 399 will be returned to the application.
Target Platforms: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5