FollowRedirects Property

Determines what happens when the server issues a redirect.

Syntax

public int getFollowRedirects();
public void setFollowRedirects(int followRedirects);

Enumerated values: public final static int frNever = 0; public final static int frAlways = 1; public final static int frSameScheme = 2;

Default Value

0

Remarks

This property specifies how the class should behave when the server returns a redirect response (e.g. "Object Moved"). Valid values are:

frNever (0) (default) Redirects are never followed; the class throws an exception instead.
frAlways (1) Redirects are always followed.
frSameScheme (2) Redirects are followed if the new URL has the same scheme as the originally requested URL; otherwise, the class throws an exception.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks S3 2020 Java Edition - Version 20.0 [Build 8178]