curl/docs/libcurl
Patrick Monnerat e44ddfd477 mime: clone mime tree upon easy handle duplication.
A mime tree attached to an easy handle using CURLOPT_MIMEPOST is
strongly bound to the handle: there is a pointer to the easy handle in
each item of the mime tree and following the parent pointer list
of mime items ends in a dummy part stored within the handle.

Because of this binding, a mime tree cannot be shared between different
easy handles, thus it needs to be cloned upon easy handle duplication.

There is no way for the caller to get the duplicated mime tree
handle: it is then set to be automatically destroyed upon freeing the
new easy handle.

New test 654 checks proper mime structure duplication/release.

Add a warning note in curl_mime_data_cb() documentation about sharing
user data between duplicated handles.

Closes #2235
2018-01-14 19:43:12 +01:00
..
opts setopt: fix SSLVERSION to allow CURL_SSLVERSION_MAX_ values 2018-01-13 02:57:30 -05:00
.gitignore gitignore: Ignore man page dist files 2017-03-07 23:27:31 +01:00
ABI ABI doc: use secure URL 2015-07-30 15:02:44 +02:00
CMakeLists.txt cmake: fix build with cmake 2.8.12.2 2017-03-30 23:43:35 +02:00
Makefile.am cmake: add more missing files to the dist 2017-03-30 08:12:37 +02:00
Makefile.inc mime: implement encoders. 2017-09-05 17:55:51 +01:00
curl_easy_cleanup.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_easy_duphandle.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_easy_escape.3 docs: fix typo funtion -> function 2017-08-12 14:56:37 +02:00
curl_easy_getinfo.3 getinfo: return sizes as curl_off_t 2017-06-19 09:27:42 +02:00
curl_easy_init.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_easy_pause.3 curl_easy_pause.3: fix man page reference 2016-05-01 23:24:09 +02:00
curl_easy_perform.3 docs: unified man page references to use \fI 2016-05-02 09:09:59 +02:00
curl_easy_recv.3 curl_easy_recv: Improve documentation and example program 2016-12-18 12:56:23 +01:00
curl_easy_reset.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_easy_send.3 curl_easy_recv: Improve documentation and example program 2016-12-18 12:56:23 +01:00
curl_easy_setopt.3 mime: new MIME API. 2017-09-02 17:47:10 +01:00
curl_easy_strerror.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_easy_unescape.3 unescape: avoid integer overflow 2016-10-31 08:46:35 +01:00
curl_escape.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_formadd.3 docs: clarify form/mime usage of non-regular data files. 2017-10-08 16:15:23 +01:00
curl_formfree.3 mime: new MIME API. 2017-09-02 17:47:10 +01:00
curl_formget.3 mime: new MIME API. 2017-09-02 17:47:10 +01:00
curl_free.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_getdate.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_getenv.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_global_cleanup.3 curl_global_cleanup.3: don't unload the lib with sub threads running 2016-09-20 23:00:52 +02:00
curl_global_init.3 global_init: ignore CURL_GLOBAL_SSL's absense 2017-11-27 08:50:33 +01:00
curl_global_init_mem.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_global_sslset.3 vtls: provide curl_global_sslset() even in non-SSL builds 2017-09-22 12:09:13 +02:00
curl_mime_addpart.3 form/mime: field names are not allowed to contain zero-valued bytes. 2017-09-22 01:08:29 +01:00
curl_mime_data.3 form/mime: field names are not allowed to contain zero-valued bytes. 2017-09-22 01:08:29 +01:00
curl_mime_data_cb.3 mime: clone mime tree upon easy handle duplication. 2018-01-14 19:43:12 +01:00
curl_mime_encoder.3 mime: implement encoders. 2017-09-05 17:55:51 +01:00
curl_mime_filedata.3 docs: comment about CURLE_READ_ERROR returned by curl_mime_filedata 2018-01-14 16:08:43 +01:00
curl_mime_filename.3 form/mime: field names are not allowed to contain zero-valued bytes. 2017-09-22 01:08:29 +01:00
curl_mime_free.3 docs: curl_mime_*.3 man page formatting edits 2017-09-04 09:20:24 +02:00
curl_mime_headers.3 form/mime: field names are not allowed to contain zero-valued bytes. 2017-09-22 01:08:29 +01:00
curl_mime_init.3 form/mime: field names are not allowed to contain zero-valued bytes. 2017-09-22 01:08:29 +01:00
curl_mime_name.3 form/mime: field names are not allowed to contain zero-valued bytes. 2017-09-22 01:08:29 +01:00
curl_mime_subparts.3 docs/curl_mime_*.3: added examples 2017-09-05 11:15:02 +02:00
curl_mime_type.3 form/mime: field names are not allowed to contain zero-valued bytes. 2017-09-22 01:08:29 +01:00
curl_mprintf.3 curl/mprintf.h: remove support for _MPRINTF_REPLACE 2016-04-01 10:46:36 +02:00
curl_multi_add_handle.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_assign.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_cleanup.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_fdset.3 curl_multi_fdset.3: emphasize curl_multi_timeout 2017-11-09 07:52:19 +01:00
curl_multi_info_read.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_init.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_perform.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_remove_handle.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_setopt.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_socket.3 curl_multi_socket.3: fix typo 2016-12-15 17:26:23 +01:00
curl_multi_socket_action.3 curl_multi_socket_action.3: Fix rewording 2016-06-09 02:10:22 -04:00
curl_multi_socket_all.3 The inital early embryos to describe the curl_multi_socket() API. Committed 2005-12-22 15:11:11 +00:00
curl_multi_strerror.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_timeout.3 docs: unified man page references to use \fI 2016-05-02 09:09:59 +02:00
curl_multi_wait.3 curl_multi_wait.3: add example 2016-03-09 08:35:17 +01:00
curl_share_cleanup.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_share_init.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_share_setopt.3 conncache: only allow multiplexing within same multi handle 2017-12-05 23:36:08 +01:00
curl_share_strerror.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_slist_append.3 curl_slist_append.3: clarify a NULL input creates a new list 2017-05-05 13:54:56 +02:00
curl_slist_free_all.3 tests/server: run checksrc by default in debug-builds 2017-05-05 15:51:25 +02:00
curl_strequal.3 curl_strequal.3: fix typo in SYNOPSIS 2017-06-29 01:16:56 +02:00
curl_strnequal.3 prepend the man3 dir to the file name to work better. 2004-04-02 11:04:34 +00:00
curl_unescape.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_version.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_version_info.3 curl_version_info.3: call the argument 'age' 2017-12-29 22:15:12 +13:00
getinfo-times getinfo-times: Typo fixed 2014-08-29 16:41:17 +02:00
index.html libcurl-thread.3: Consolidate thread safety info 2015-07-28 13:57:06 +02:00
libcurl-easy.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
libcurl-errors.3 errors: new alias CURLE_WEIRD_SERVER_REPLY (8) 2016-09-07 21:24:27 -04:00
libcurl-multi.3 http-proxy: do the HTTP CONNECT process entirely non-blocking 2017-06-14 23:43:52 +02:00
libcurl-share.3 libcurl-share.3: the connection cache is shareable now 2017-11-27 09:42:39 +01:00
libcurl-thread.3 docs/comments: Update to secure URL versions 2017-08-08 21:41:07 +02:00
libcurl-tutorial.3 libcurl-tutorial.3: fix typo 2017-10-24 13:27:41 +02:00
libcurl.3 Add a man page for curl_global_sslset() 2017-08-28 14:56:59 +02:00
libcurl.m4 libcurl.m4: Avoid obsolete warning 2016-05-20 16:05:39 +02:00
mksymbolsmanpage.pl scripts: allow all perl scripts to be run directly 2018-01-07 15:42:11 -05:00
symbols-in-versions symbols-in-versions: added new symbols with 7.56.3 version 2017-12-01 17:38:37 +01:00
symbols.pl scripts: allow all perl scripts to be run directly 2018-01-07 15:42:11 -05:00