Skip to content
Andrew Lambert edited this page Aug 18, 2025 · 1 revision

libcURL.FollowMode

Enumeration

Protected Enum FollowMode
 NoFollow=0
 All=1
 ObeyCode=2
 FirstOnly=3

Remarks

The FollowMode controls how libcurl follows HTTP redirection.

FollowMode Comment
NoFollow Default. Does not follow redirection.
All Follow all redirects. If a custom request method was used with the initial request then it will be used for all redirects.
ObeyCode Follow all redirects. If a custom request method was used with the initial request then libcurl will change it to GET for redirects that use status codes 301, 302, or 303; or will preserve the custom request method for redirects that use status codes 307 and 308.
FirstOnly Follow all redirects. If a custom request method was used for the initial request then it will be used for the first redirect as well. Subsequent redirects will obey the status code.

See also

Clone this wiki locally