From 217c22f31549f9098802965abdeec1053e30f6d5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 26 May 2025 12:17:11 +0200 Subject: [PATCH] CURLOPT_READFUNCTION.md: mention the seek callback Brought-up-by: Jeroen Ooms URL: https://curl.se/mail/lib-2025-05/0030.html Closes #17455 --- docs/libcurl/opts/CURLOPT_READFUNCTION.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/libcurl/opts/CURLOPT_READFUNCTION.md b/docs/libcurl/opts/CURLOPT_READFUNCTION.md index 9e3c3d1f85..71ad2e9ca0 100644 --- a/docs/libcurl/opts/CURLOPT_READFUNCTION.md +++ b/docs/libcurl/opts/CURLOPT_READFUNCTION.md @@ -71,6 +71,11 @@ CURLOPT_INFILESIZE_LARGE(3) or CURLOPT_POSTFIELDSIZE_LARGE(3), depending on the type of transfer. For some transfer types it may be required and it allows for better error checking. +When this option is used in combination with telling libcurl to follow +redirects with CURLOPT_FOLLOWLOCATION(3), the data might need to be rewound +and sent again. The CURLOPT_SEEKFUNCTION(3) can then be invoked for that +rewind operation. + # DEFAULT fread(3)