← Commit list

236c7d3c4d

Daniel Stenberg
Daniel Stenberg
2026-01-13
SUCCESS Duration: 329s

Subject

curl_easy_nextheader.md: a new transfer invalidates 'prev'

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/libcurl/curl_easy_nextheader.md+4 -0
@@ -61,6 +61,10 @@ The memory for the struct this points to, is owned and managed by libcurl and
is associated with the easy handle. Applications must copy the data if they
want it to survive subsequent API calls or the life-time of the easy handle.
+The *prev* pointer is only valid until another transfer is done using the
+*easy* handle. Once a new transfer has started, a new *prev* must be retrieved
+by calling curl_easy_nextheader(3) again with NULL as the fourth argument.
+
# %PROTOCOLS%
# EXAMPLE