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;
Remarks
Normally, the bean returns an error if the server responds with an "Object Moved" message. If FollowRedirects is set to frAlways (1), the new URL for the request is retrieved automatically every time.
If FollowRedirects is set to frSameScheme (2), the new URL is retrieved automatically only if the URL scheme is the same as the original request, otherwise the bean throws an exception.
The default value is frNever (0). In this case, redirects are never followed, and the bean throws an exception instead.
Default Value
0