HttpURLConnection.InstanceFollowRedirects Property

Definition

Returns the value of this HttpURLConnection's instanceFollowRedirects field. -or- Sets whether HTTP redirects (requests with response code 3xx) should be automatically followed by this HttpURLConnection instance.

public virtual bool InstanceFollowRedirects { [Android.Runtime.Register("getInstanceFollowRedirects", "()Z", "GetGetInstanceFollowRedirectsHandler")] get; [Android.Runtime.Register("setInstanceFollowRedirects", "(Z)V", "GetSetInstanceFollowRedirects_ZHandler")] set; }
[<get: Android.Runtime.Register("getInstanceFollowRedirects", "()Z", "GetGetInstanceFollowRedirectsHandler")>]
[<set: Android.Runtime.Register("setInstanceFollowRedirects", "(Z)V", "GetSetInstanceFollowRedirects_ZHandler")>]
member this.InstanceFollowRedirects : bool with get, set

Property Value

the value of this HttpURLConnection's instanceFollowRedirects field.

Attributes

Remarks

Property getter documentation:

Returns the value of this HttpURLConnection's instanceFollowRedirects field.

Added in 1.3.

Java documentation for java.net.HttpURLConnection.getInstanceFollowRedirects().

Property setter documentation:

Sets whether HTTP redirects (requests with response code 3xx) should be automatically followed by this HttpURLConnection instance.

The default value comes from followRedirects, which defaults to true.

Added in 1.3.

Java documentation for java.net.HttpURLConnection.setInstanceFollowRedirects(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to