HttpURLConnection.FollowRedirects Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a boolean
indicating
whether or not HTTP redirects (3xx) should
be automatically followed. -or- Sets whether HTTP redirects (requests with response code 3xx) should
be automatically followed by this class.
public static bool FollowRedirects { [Android.Runtime.Register("getFollowRedirects", "()Z", "")] get; [Android.Runtime.Register("setFollowRedirects", "(Z)V", "")] set; }
[<get: Android.Runtime.Register("getFollowRedirects", "()Z", "")>]
[<set: Android.Runtime.Register("setFollowRedirects", "(Z)V", "")>]
static member FollowRedirects : bool with get, set
Property Value
true
if HTTP redirects should
be automatically followed, false
if not.
- Attributes
Remarks
Property getter documentation:
Returns a boolean
indicating whether or not HTTP redirects (3xx) should be automatically followed.
Java documentation for java.net.HttpURLConnection.getFollowRedirects()
.
Property setter documentation:
Sets whether HTTP redirects (requests with response code 3xx) should be automatically followed by this class. True by default. Applets cannot change this variable.
If there is a security manager, this method first calls the security manager's checkSetFactory
method to ensure the operation is allowed. This could result in a SecurityException.
Java documentation for java.net.HttpURLConnection.setFollowRedirects(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.