CURLOPT_READFUNCTION.md: mention the seek callback

Brought-up-by: Jeroen Ooms
URL: https://curl.se/mail/lib-2025-05/0030.html
Closes #17455
This commit is contained in:
Daniel Stenberg 2025-05-26 12:17:11 +02:00
parent ac7e2c3dc6
commit 217c22f315
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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)