diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-10-03 13:35:40 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-10-03 13:35:40 +0200 |
commit | b1c4c39c5830951b805d9cb136c2e3f0237776b9 (patch) | |
tree | 234d8041b500b46cf1c2a7ae5f318a49bea36b88 /docs/libcurl/opts | |
parent | b85c625d831de821d0e4ead3d01be2ffe955aa28 (diff) |
CURLOPT_HTTPHEADER.3: libcurl doesn't copy the whole list
Diffstat (limited to 'docs/libcurl/opts')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_HTTPHEADER.3 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/libcurl/opts/CURLOPT_HTTPHEADER.3 b/docs/libcurl/opts/CURLOPT_HTTPHEADER.3 index 557f9fbf0..10fcf08f0 100644 --- a/docs/libcurl/opts/CURLOPT_HTTPHEADER.3 +++ b/docs/libcurl/opts/CURLOPT_HTTPHEADER.3 @@ -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 |