-
-
Notifications
You must be signed in to change notification settings - Fork 11
libcURL.FollowMode
Andrew Lambert edited this page Aug 18, 2025
·
1 revision
libcURL.FollowMode
Protected Enum FollowMode
NoFollow=0
All=1
ObeyCode=2
FirstOnly=3
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. |
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.