FollowRedirects Property
Determines what happens when the server issues a redirect.
Data Type
EnumerationPossible Values
Never (0)Always (1)
Same Scheme (2)
Default Value
0Remarks
Normally, the adapter returns an error if the server responds with an "Object Moved" message. If FollowRedirects is set to frAlways (1) the new URL for the object 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, otherwise the adapter generate a runtime error.
Furthermore, if either the new URL server and port are different than the existing one, HTTPUser and HTTPPassword are also reset to empty, unless FollowRedirects is set to frAlways (1), in which case the same credentials are used to connect to the new server.
The default value is frNever (0). In this case, redirects are never followed, and a runtime error is generated instead.