]> git.ipfire.org Git - thirdparty/curl.git/commit
CURLOPT_PREREQFUNCTION: add new callback
authorMax Dymond <max.dymond@microsoft.com>
Thu, 22 Jul 2021 14:32:30 +0000 (15:32 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 27 Sep 2021 15:16:43 +0000 (17:16 +0200)
commita517378de58358a85b7cfe9efecb56051268f629
tree8b8b43685911d3cbc6450b8d7255f5a10d2b8795
parent06981ba7f620364eba253f5afcd7ebfaefcc8694
CURLOPT_PREREQFUNCTION: add new callback

Triggered before a request is made but after a connection is set up

Changes:

- callback: Update docs and callback for pre-request callback
- Add documentation for CURLOPT_PREREQDATA and CURLOPT_PREREQFUNCTION,
- Add redirect test and callback failure test
- Note that the function may be called multiple times on a redirection
- Disable new 2086 test due to Windows weirdness

Closes #7477
21 files changed:
docs/libcurl/curl_easy_setopt.3
docs/libcurl/opts/CURLOPT_PREREQDATA.3 [new file with mode: 0644]
docs/libcurl/opts/CURLOPT_PREREQFUNCTION.3 [new file with mode: 0644]
docs/libcurl/opts/Makefile.inc
docs/libcurl/symbols-in-versions
include/curl/curl.h
lib/easyoptions.c
lib/multi.c
lib/setopt.c
lib/urldata.h
tests/data/DISABLED
tests/data/Makefile.inc
tests/data/test2082 [new file with mode: 0644]
tests/data/test2083 [new file with mode: 0644]
tests/data/test2084 [new file with mode: 0644]
tests/data/test2085 [new file with mode: 0644]
tests/data/test2086 [new file with mode: 0644]
tests/libtest/.gitignore
tests/libtest/Makefile.inc
tests/libtest/libprereq.c [new file with mode: 0644]
tests/libtest/mk-lib1521.pl