]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: add CURLFOLLOW_OBEYCODE and CURLFOLLOW_FIRSTONLY
authorDaniel Stenberg <daniel@haxx.se>
Mon, 3 Mar 2025 10:35:48 +0000 (11:35 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Mar 2025 10:35:48 +0000 (11:35 +0100)
commitfb13923dd67d5196c47e8df9c05b5cca59c1a750
treeeb5bd9db2a802551ce941f9f899a04a6c626cfba
parent294136b75411893c57db9438b1a69493adc08c9c
lib: add CURLFOLLOW_OBEYCODE and CURLFOLLOW_FIRSTONLY

With this change, the argument passed to the CURLOPT_FOLLOWLOCATION
option is now instead a "mode" instead of just a boolean. Documentation
is extended to describe the two new modes.

Test 1571 to 1581 verify.

Closes #16473
23 files changed:
docs/KNOWN_BUGS
docs/libcurl/opts/CURLOPT_CUSTOMREQUEST.md
docs/libcurl/opts/CURLOPT_FOLLOWLOCATION.md
docs/libcurl/symbols-in-versions
include/curl/curl.h
lib/http.c
lib/setopt.c
lib/urldata.h
tests/data/Makefile.am
tests/data/test1571 [new file with mode: 0644]
tests/data/test1572 [new file with mode: 0644]
tests/data/test1573 [new file with mode: 0644]
tests/data/test1574 [new file with mode: 0644]
tests/data/test1575 [new file with mode: 0644]
tests/data/test1576 [new file with mode: 0644]
tests/data/test1577 [new file with mode: 0644]
tests/data/test1578 [new file with mode: 0644]
tests/data/test1579 [new file with mode: 0644]
tests/data/test1580 [new file with mode: 0644]
tests/data/test1581 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib1571.c [new file with mode: 0644]
tests/libtest/lib1576.c [new file with mode: 0644]