]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT_HTTPHEADER.3: libcurl doesn't copy the whole list
authorDaniel Stenberg <daniel@haxx.se>
Fri, 3 Oct 2014 11:35:40 +0000 (13:35 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 3 Oct 2014 11:35:40 +0000 (13:35 +0200)
docs/libcurl/opts/CURLOPT_HTTPHEADER.3

index 557f9fbf08284e4ae4fa19ac369f49609c6b14eb..10fcf08f060bd07148e09a28fd8ba2c353d43a36 100644 (file)
@@ -54,6 +54,11 @@ following the request-line are headers. Adding this method line in this list
 of headers will only cause your request to send an invalid header. Use
 \fICURLOPT_CUSTOMREQUEST(3)\fP to change the method.
 
+When this option is passed to \fIcurl_easy_setopt(3)\fP, libcurl will not copy
+the entire list so you \fBmust\fP keep it around until you no longer use this
+\fIhandle\fP for a transfer before you call \fIcurl_slist_free_all(3)\fP on
+the list.
+
 Pass a NULL to this option to reset back to no custom headers.
 
 The most commonly replaced headers have "shortcuts" in the options