TODO 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308
  1. _ _ ____ _
  2. ___| | | | _ \| |
  3. / __| | | | |_) | |
  4. | (__| |_| | _ <| |___
  5. \___|\___/|_| \_\_____|
  6. Things that could be nice to do in the future
  7. Things to do in project curl. Please tell us what you think, contribute and
  8. send us patches that improve things!
  9. Be aware that these are things that we could do, or have once been considered
  10. things we could do. If you want to work on any of these areas, please
  11. consider bringing it up for discussions first on the mailing list so that we
  12. all agree it is still a good idea for the project!
  13. All bugs documented in the KNOWN_BUGS document are subject for fixing!
  14. 1. libcurl
  15. 1.1 TFO support on Windows
  16. 1.2 Consult %APPDATA% also for .netrc
  17. 1.3 struct lifreq
  18. 1.4 alt-svc sharing
  19. 1.5 get rid of PATH_MAX
  20. 1.6 native IDN support on macOS
  21. 1.7 Support HTTP/2 for HTTP(S) proxies
  22. 1.8 CURLOPT_RESOLVE for any port number
  23. 1.9 Cache negative name resolves
  24. 1.10 auto-detect proxy
  25. 1.11 minimize dependencies with dynamically loaded modules
  26. 1.12 updated DNS server while running
  27. 1.13 c-ares and CURLOPT_OPENSOCKETFUNCTION
  28. 1.14 Typesafe curl_easy_setopt()
  29. 1.15 Monitor connections in the connection pool
  30. 1.16 Try to URL encode given URL
  31. 1.17 Add support for IRIs
  32. 1.18 try next proxy if one doesn't work
  33. 1.20 SRV and URI DNS records
  34. 1.22 CURLINFO_PAUSE_STATE
  35. 1.23 Offer API to flush the connection pool
  36. 1.24 TCP Fast Open for windows
  37. 1.25 Expose tried IP addresses that failed
  38. 1.27 hardcode the "localhost" addresses
  39. 1.28 FD_CLOEXEC
  40. 1.29 Upgrade to websockets
  41. 1.30 config file parsing
  42. 2. libcurl - multi interface
  43. 2.1 More non-blocking
  44. 2.2 Better support for same name resolves
  45. 2.3 Non-blocking curl_multi_remove_handle()
  46. 2.4 Split connect and authentication process
  47. 2.5 Edge-triggered sockets should work
  48. 2.6 multi upkeep
  49. 3. Documentation
  50. 3.2 Provide cmake config-file
  51. 4. FTP
  52. 4.1 HOST
  53. 4.2 Alter passive/active on failure and retry
  54. 4.3 Earlier bad letter detection
  55. 4.5 ASCII support
  56. 4.6 GSSAPI via Windows SSPI
  57. 4.7 STAT for LIST without data connection
  58. 4.8 Option to ignore private IP addresses in PASV response
  59. 5. HTTP
  60. 5.1 Better persistency for HTTP 1.0
  61. 5.2 Set custom client ip when using haproxy protocol
  62. 5.3 Rearrange request header order
  63. 5.4 Allow SAN names in HTTP/2 server push
  64. 5.5 auth= in URLs
  65. 6. TELNET
  66. 6.1 ditch stdin
  67. 6.2 ditch telnet-specific select
  68. 6.3 feature negotiation debug data
  69. 7. SMTP
  70. 7.2 Enhanced capability support
  71. 7.3 Add CURLOPT_MAIL_CLIENT option
  72. 8. POP3
  73. 8.2 Enhanced capability support
  74. 9. IMAP
  75. 9.1 Enhanced capability support
  76. 10. LDAP
  77. 10.1 SASL based authentication mechanisms
  78. 10.2 CURLOPT_SSL_CTX_FUNCTION for LDAPS
  79. 10.3 Paged searches on LDAP server
  80. 11. SMB
  81. 11.1 File listing support
  82. 11.2 Honor file timestamps
  83. 11.3 Use NTLMv2
  84. 11.4 Create remote directories
  85. 12. New protocols
  86. 13. SSL
  87. 13.1 TLS-PSK with OpenSSL
  88. 13.2 Provide mutex locking API
  89. 13.3 Support in-memory certs/ca certs/keys
  90. 13.4 Cache/share OpenSSL contexts
  91. 13.5 Export session ids
  92. 13.6 Provide callback for cert verification
  93. 13.7 improve configure --with-ssl
  94. 13.8 Support DANE
  95. 13.9 TLS record padding
  96. 13.10 Support Authority Information Access certificate extension (AIA)
  97. 13.11 Support intermediate & root pinning for PINNEDPUBLICKEY
  98. 13.12 Support HSTS
  99. 13.13 Make sure we forbid TLS 1.3 post-handshake authentication
  100. 13.14 Support the clienthello extension
  101. 14. GnuTLS
  102. 14.2 check connection
  103. 15. Schannel
  104. 15.1 Extend support for client certificate authentication
  105. 15.2 Extend support for the --ciphers option
  106. 15.3 Add option to disable client certificate auto-send
  107. 15.4 Add option to allow abrupt server closure
  108. 16. SASL
  109. 16.1 Other authentication mechanisms
  110. 16.2 Add QOP support to GSSAPI authentication
  111. 16.3 Support binary messages (i.e.: non-base64)
  112. 17. SSH protocols
  113. 17.1 Multiplexing
  114. 17.2 Handle growing SFTP files
  115. 17.3 Support better than MD5 hostkey hash
  116. 17.4 Support CURLOPT_PREQUOTE
  117. 18. Command line tool
  118. 18.1 sync
  119. 18.2 glob posts
  120. 18.3 prevent file overwriting
  121. 18.4 --proxycommand
  122. 18.5 UTF-8 filenames in Content-Disposition
  123. 18.6 Option to make -Z merge lined based outputs on stdout
  124. 18.7 at least N milliseconds between requests
  125. 18.8 Consider convenience options for JSON and XML?
  126. 18.9 Choose the name of file in braces for complex URLs
  127. 18.10 improve how curl works in a windows console window
  128. 18.11 Windows: set attribute 'archive' for completed downloads
  129. 18.12 keep running, read instructions from pipe/socket
  130. 18.13 Ratelimit or wait between serial requests
  131. 18.14 --dry-run
  132. 18.15 --retry should resume
  133. 18.16 send only part of --data
  134. 18.17 consider file name from the redirected URL with -O ?
  135. 18.18 retry on network is unreachable
  136. 18.19 expand ~/ in config files
  137. 18.20 host name sections in config files
  138. 18.21 retry on the redirected-to URL
  139. 18.22 Add flag to specify download directory
  140. 19. Build
  141. 19.1 roffit
  142. 19.2 Enable PIE and RELRO by default
  143. 20. Test suite
  144. 20.1 SSL tunnel
  145. 20.2 nicer lacking perl message
  146. 20.3 more protocols supported
  147. 20.4 more platforms supported
  148. 20.5 Add support for concurrent connections
  149. 20.6 Use the RFC6265 test suite
  150. 20.7 Support LD_PRELOAD on macOS
  151. 20.8 Run web-platform-tests url tests
  152. 20.9 Use "random" ports for the test servers
  153. 21. Next SONAME bump
  154. 21.1 http-style HEAD output for FTP
  155. 21.2 combine error codes
  156. 21.3 extend CURLOPT_SOCKOPTFUNCTION prototype
  157. 22. Next major release
  158. 22.1 cleanup return codes
  159. 22.2 remove obsolete defines
  160. 22.3 size_t
  161. 22.4 remove several functions
  162. 22.5 remove CURLOPT_FAILONERROR
  163. 22.7 remove progress meter from libcurl
  164. 22.8 remove 'curl_httppost' from public
  165. ==============================================================================
  166. 1. libcurl
  167. 1.1 TFO support on Windows
  168. TCP Fast Open is supported on several platforms but not on Windows. Work on
  169. this was once started but never finished.
  170. See https://github.com/curl/curl/pull/3378
  171. 1.2 Consult %APPDATA% also for .netrc
  172. %APPDATA%\.netrc is not considered when running on Windows. Shouldn't it?
  173. See https://github.com/curl/curl/issues/4016
  174. 1.3 struct lifreq
  175. Use 'struct lifreq' and SIOCGLIFADDR instead of 'struct ifreq' and
  176. SIOCGIFADDR on newer Solaris versions as they claim the latter is obsolete.
  177. To support IPv6 interface addresses for network interfaces properly.
  178. 1.4 alt-svc sharing
  179. The share interface could benefit from allowing the alt-svc cache to be
  180. possible to share between easy handles.
  181. See https://github.com/curl/curl/issues/4476
  182. 1.5 get rid of PATH_MAX
  183. Having code use and rely on PATH_MAX is not nice:
  184. https://insanecoding.blogspot.com/2007/11/pathmax-simply-isnt.html
  185. Currently the libssh2 SSH based code uses it, but to remove PATH_MAX from
  186. there we need libssh2 to properly tell us when we pass in a too small buffer
  187. and its current API (as of libssh2 1.2.7) doesn't.
  188. 1.6 native IDN support on macOS
  189. On recent macOS versions, the getaddrinfo() function itself has built-in IDN
  190. support. By setting the AI_CANONNAME flag, the function will return the
  191. encoded name in the ai_canonname struct field in the returned information.
  192. This could be used by curl on macOS when built without a separate IDN library
  193. and an IDN host name is used in a URL.
  194. 1.7 Support HTTP/2 for HTTP(S) proxies
  195. Support for doing HTTP/2 to HTTP and HTTPS proxies is still missing.
  196. See https://github.com/curl/curl/issues/3570
  197. 1.8 CURLOPT_RESOLVE for any port number
  198. This option allows applications to set a replacement IP address for a given
  199. host + port pair. Consider making support for providing a replacement address
  200. for the host name on all port numbers.
  201. See https://github.com/curl/curl/issues/1264
  202. 1.9 Cache negative name resolves
  203. A name resolve that has failed is likely to fail when made again within a
  204. short period of time. Currently we only cache positive responses.
  205. 1.10 auto-detect proxy
  206. libcurl could be made to detect the system proxy setup automatically and use
  207. that. On Windows, macOS and Linux desktops for example.
  208. The pull-request to use libproxy for this was deferred due to doubts on the
  209. reliability of the dependency and how to use it:
  210. https://github.com/curl/curl/pull/977
  211. libdetectproxy is a (C++) library for detecting the proxy on Windows
  212. https://github.com/paulharris/libdetectproxy
  213. 1.11 minimize dependencies with dynamically loaded modules
  214. We can create a system with loadable modules/plug-ins, where these modules
  215. would be the ones that link to 3rd party libs. That would allow us to avoid
  216. having to load ALL dependencies since only the necessary ones for this
  217. app/invoke/used protocols would be necessary to load. See
  218. https://github.com/curl/curl/issues/349
  219. 1.12 updated DNS server while running
  220. If /etc/resolv.conf gets updated while a program using libcurl is running, it
  221. is may cause name resolves to fail unless res_init() is called. We should
  222. consider calling res_init() + retry once unconditionally on all name resolve
  223. failures to mitigate against this. Firefox works like that. Note that Windows
  224. doesn't have res_init() or an alternative.
  225. https://github.com/curl/curl/issues/2251
  226. 1.13 c-ares and CURLOPT_OPENSOCKETFUNCTION
  227. curl will create most sockets via the CURLOPT_OPENSOCKETFUNCTION callback and
  228. close them with the CURLOPT_CLOSESOCKETFUNCTION callback. However, c-ares
  229. does not use those functions and instead opens and closes the sockets
  230. itself. This means that when curl passes the c-ares socket to the
  231. CURLMOPT_SOCKETFUNCTION it isn't owned by the application like other sockets.
  232. See https://github.com/curl/curl/issues/2734
  233. 1.14 Typesafe curl_easy_setopt()
  234. One of the most common problems in libcurl using applications is the lack of
  235. type checks for curl_easy_setopt() which happens because it accepts varargs
  236. and thus can take any type.
  237. One possible solution to this is to introduce a few different versions of the
  238. setopt version for the different kinds of data you can set.
  239. curl_easy_set_num() - sets a long value
  240. curl_easy_set_large() - sets a curl_off_t value
  241. curl_easy_set_ptr() - sets a pointer
  242. curl_easy_set_cb() - sets a callback PLUS its callback data
  243. 1.15 Monitor connections in the connection pool
  244. libcurl's connection cache or pool holds a number of open connections for the
  245. purpose of possible subsequent connection reuse. It may contain a few up to a
  246. significant amount of connections. Currently, libcurl leaves all connections
  247. as they are and first when a connection is iterated over for matching or
  248. reuse purpose it is verified that it is still alive.
  249. Those connections may get closed by the server side for idleness or they may
  250. get a HTTP/2 ping from the peer to verify that they're still alive. By adding
  251. monitoring of the connections while in the pool, libcurl can detect dead
  252. connections (and close them) better and earlier, and it can handle HTTP/2
  253. pings to keep such ones alive even when not actively doing transfers on them.
  254. 1.16 Try to URL encode given URL
  255. Given a URL that for example contains spaces, libcurl could have an option
  256. that would try somewhat harder than it does now and convert spaces to %20 and
  257. perhaps URL encoded byte values over 128 etc (basically do what the redirect
  258. following code already does).
  259. https://github.com/curl/curl/issues/514
  260. 1.17 Add support for IRIs
  261. IRIs (RFC 3987) allow localized, non-ascii, names in the URL. To properly
  262. support this, curl/libcurl would need to translate/encode the given input
  263. from the input string encoding into percent encoded output "over the wire".
  264. To make that work smoothly for curl users even on Windows, curl would
  265. probably need to be able to convert from several input encodings.
  266. 1.18 try next proxy if one doesn't work
  267. Allow an application to specify a list of proxies to try, and failing to
  268. connect to the first go on and try the next instead until the list is
  269. exhausted. Browsers support this feature at least when they specify proxies
  270. using PACs.
  271. https://github.com/curl/curl/issues/896
  272. 1.20 SRV and URI DNS records
  273. Offer support for resolving SRV and URI DNS records for libcurl to know which
  274. server to connect to for various protocols (including HTTP!).
  275. 1.22 CURLINFO_PAUSE_STATE
  276. Return information about the transfer's current pause state, in both
  277. directions. https://github.com/curl/curl/issues/2588
  278. 1.23 Offer API to flush the connection pool
  279. Sometimes applications want to flush all the existing connections kept alive.
  280. An API could allow a forced flush or just a forced loop that would properly
  281. close all connections that have been closed by the server already.
  282. 1.24 TCP Fast Open for windows
  283. libcurl supports the CURLOPT_TCP_FASTOPEN option since 7.49.0 for Linux and
  284. Mac OS. Windows supports TCP Fast Open starting with Windows 10, version 1607
  285. and we should add support for it.
  286. 1.25 Expose tried IP addresses that failed
  287. When libcurl fails to connect to a host, it should be able to offer the
  288. application the list of IP addresses that were used in the attempt.
  289. https://github.com/curl/curl/issues/2126
  290. 1.27 hardcode the "localhost" addresses
  291. There's this new spec getting adopted that says "localhost" should always and
  292. unconditionally be a local address and not get resolved by a DNS server. A
  293. fine way for curl to fix this would be to simply hard-code the response to
  294. 127.0.0.1 and/or ::1 (depending on what IP versions that are requested). This
  295. is what the browsers probably will do with this hostname.
  296. https://bugzilla.mozilla.org/show_bug.cgi?id=1220810
  297. https://tools.ietf.org/html/draft-ietf-dnsop-let-localhost-be-localhost-02
  298. 1.28 FD_CLOEXEC
  299. It sets the close-on-exec flag for the file descriptor, which causes the file
  300. descriptor to be automatically (and atomically) closed when any of the
  301. exec-family functions succeed. Should probably be set by default?
  302. https://github.com/curl/curl/issues/2252
  303. 1.29 Upgrade to websockets
  304. libcurl could offer a smoother path to get to a websocket connection.
  305. See https://github.com/curl/curl/issues/3523
  306. Michael Kaufmann suggestion here:
  307. https://curl.haxx.se/video/curlup-2017/2017-03-19_05_Michael_Kaufmann_Websocket_support_for_curl.mp4
  308. 1.30 config file parsing
  309. Consider providing an API, possibly in a separate companion library, for
  310. parsing a config file like curl's -K/--config option to allow applications to
  311. get the same ability to read curl options from files.
  312. See https://github.com/curl/curl/issues/3698
  313. 2. libcurl - multi interface
  314. 2.1 More non-blocking
  315. Make sure we don't ever loop because of non-blocking sockets returning
  316. EWOULDBLOCK or similar. Blocking cases include:
  317. - Name resolves on non-windows unless c-ares or the threaded resolver is used.
  318. - The threaded resolver may block on cleanup:
  319. https://github.com/curl/curl/issues/4852
  320. - file:// transfers
  321. - TELNET transfers
  322. - GSSAPI authentication for FTP transfers
  323. - The "DONE" operation (post transfer protocol-specific actions) for the
  324. protocols SFTP, SMTP, FTP. Fixing multi_done() for this is a worthy task.
  325. - curl_multi_remove_handle for any of the above. See section 2.3.
  326. 2.2 Better support for same name resolves
  327. If a name resolve has been initiated for name NN and a second easy handle
  328. wants to resolve that name as well, make it wait for the first resolve to end
  329. up in the cache instead of doing a second separate resolve. This is
  330. especially needed when adding many simultaneous handles using the same host
  331. name when the DNS resolver can get flooded.
  332. 2.3 Non-blocking curl_multi_remove_handle()
  333. The multi interface has a few API calls that assume a blocking behavior, like
  334. add_handle() and remove_handle() which limits what we can do internally. The
  335. multi API need to be moved even more into a single function that "drives"
  336. everything in a non-blocking manner and signals when something is done. A
  337. remove or add would then only ask for the action to get started and then
  338. multi_perform() etc still be called until the add/remove is completed.
  339. 2.4 Split connect and authentication process
  340. The multi interface treats the authentication process as part of the connect
  341. phase. As such any failures during authentication won't trigger the relevant
  342. QUIT or LOGOFF for protocols such as IMAP, POP3 and SMTP.
  343. 2.5 Edge-triggered sockets should work
  344. The multi_socket API should work with edge-triggered socket events. One of
  345. the internal actions that need to be improved for this to work perfectly is
  346. the 'maxloops' handling in transfer.c:readwrite_data().
  347. 2.6 multi upkeep
  348. In libcurl 7.62.0 we introduced curl_easy_upkeep. It unfortunately only works
  349. on easy handles. We should introduces a version of that for the multi handle,
  350. and also consider doing "upkeep" automatically on connections in the
  351. connection pool when the multi handle is in used.
  352. See https://github.com/curl/curl/issues/3199
  353. 3. Documentation
  354. 3.2 Provide cmake config-file
  355. A config-file package is a set of files provided by us to allow applications
  356. to write cmake scripts to find and use libcurl easier. See
  357. https://github.com/curl/curl/issues/885
  358. 4. FTP
  359. 4.1 HOST
  360. HOST is a command for a client to tell which host name to use, to offer FTP
  361. servers named-based virtual hosting:
  362. https://tools.ietf.org/html/rfc7151
  363. 4.2 Alter passive/active on failure and retry
  364. When trying to connect passively to a server which only supports active
  365. connections, libcurl returns CURLE_FTP_WEIRD_PASV_REPLY and closes the
  366. connection. There could be a way to fallback to an active connection (and
  367. vice versa). https://curl.haxx.se/bug/feature.cgi?id=1754793
  368. 4.3 Earlier bad letter detection
  369. Make the detection of (bad) %0d and %0a codes in FTP URL parts earlier in the
  370. process to avoid doing a resolve and connect in vain.
  371. 4.5 ASCII support
  372. FTP ASCII transfers do not follow RFC959. They don't convert the data
  373. accordingly.
  374. 4.6 GSSAPI via Windows SSPI
  375. In addition to currently supporting the SASL GSSAPI mechanism (Kerberos V5)
  376. via third-party GSS-API libraries, such as Heimdal or MIT Kerberos, also add
  377. support for GSSAPI authentication via Windows SSPI.
  378. 4.7 STAT for LIST without data connection
  379. Some FTP servers allow STAT for listing directories instead of using LIST,
  380. and the response is then sent over the control connection instead of as the
  381. otherwise usedw data connection: https://www.nsftools.com/tips/RawFTP.htm#STAT
  382. This is not detailed in any FTP specification.
  383. 4.8 Option to ignore private IP addresses in PASV response
  384. Some servers respond with and some other FTP client implementations can
  385. ignore private (RFC 1918 style) IP addresses when received in PASV responses.
  386. To consider for libcurl as well. See https://github.com/curl/curl/issues/1455
  387. 5. HTTP
  388. 5.1 Better persistency for HTTP 1.0
  389. "Better" support for persistent connections over HTTP 1.0
  390. https://curl.haxx.se/bug/feature.cgi?id=1089001
  391. 5.2 Set custom client ip when using haproxy protocol
  392. This would allow testing servers with different client ip addresses (without
  393. using x-forward-for header).
  394. https://github.com/curl/curl/issues/5125
  395. 5.3 Rearrange request header order
  396. Server implementors often make an effort to detect browser and to reject
  397. clients it can detect to not match. One of the last details we cannot yet
  398. control in libcurl's HTTP requests, which also can be exploited to detect
  399. that libcurl is in fact used even when it tries to impersonate a browser, is
  400. the order of the request headers. I propose that we introduce a new option in
  401. which you give headers a value, and then when the HTTP request is built it
  402. sorts the headers based on that number. We could then have internally created
  403. headers use a default value so only headers that need to be moved have to be
  404. specified.
  405. 5.4 Allow SAN names in HTTP/2 server push
  406. curl only allows HTTP/2 push promise if the provided :authority header value
  407. exactly matches the host name given in the URL. It could be extended to allow
  408. any name that would match the Subject Alternative Names in the server's TLS
  409. certificate.
  410. See https://github.com/curl/curl/pull/3581
  411. 5.5 auth= in URLs
  412. Add the ability to specify the preferred authentication mechanism to use by
  413. using ;auth=<mech> in the login part of the URL.
  414. For example:
  415. http://test:pass;auth=NTLM@example.com would be equivalent to specifying
  416. --user test:pass;auth=NTLM or --user test:pass --ntlm from the command line.
  417. Additionally this should be implemented for proxy base URLs as well.
  418. 6. TELNET
  419. 6.1 ditch stdin
  420. Reading input (to send to the remote server) on stdin is a crappy solution
  421. for library purposes. We need to invent a good way for the application to be
  422. able to provide the data to send.
  423. 6.2 ditch telnet-specific select
  424. Move the telnet support's network select() loop go away and merge the code
  425. into the main transfer loop. Until this is done, the multi interface won't
  426. work for telnet.
  427. 6.3 feature negotiation debug data
  428. Add telnet feature negotiation data to the debug callback as header data.
  429. 7. SMTP
  430. 7.2 Enhanced capability support
  431. Add the ability, for an application that uses libcurl, to obtain the list of
  432. capabilities returned from the EHLO command.
  433. 7.3 Add CURLOPT_MAIL_CLIENT option
  434. Rather than use the URL to specify the mail client string to present in the
  435. HELO and EHLO commands, libcurl should support a new CURLOPT specifically for
  436. specifying this data as the URL is non-standard and to be honest a bit of a
  437. hack ;-)
  438. Please see the following thread for more information:
  439. https://curl.haxx.se/mail/lib-2012-05/0178.html
  440. 8. POP3
  441. 8.2 Enhanced capability support
  442. Add the ability, for an application that uses libcurl, to obtain the list of
  443. capabilities returned from the CAPA command.
  444. 9. IMAP
  445. 9.1 Enhanced capability support
  446. Add the ability, for an application that uses libcurl, to obtain the list of
  447. capabilities returned from the CAPABILITY command.
  448. 10. LDAP
  449. 10.1 SASL based authentication mechanisms
  450. Currently the LDAP module only supports ldap_simple_bind_s() in order to bind
  451. to an LDAP server. However, this function sends username and password details
  452. using the simple authentication mechanism (as clear text). However, it should
  453. be possible to use ldap_bind_s() instead specifying the security context
  454. information ourselves.
  455. 10.2 CURLOPT_SSL_CTX_FUNCTION for LDAPS
  456. CURLOPT_SSL_CTX_FUNCTION works perfectly for HTTPS and email protocols, but
  457. it has no effect for LDAPS connections.
  458. https://github.com/curl/curl/issues/4108
  459. 10.3 Paged searches on LDAP server
  460. https://github.com/curl/curl/issues/4452
  461. 11. SMB
  462. 11.1 File listing support
  463. Add support for listing the contents of a SMB share. The output should probably
  464. be the same as/similar to FTP.
  465. 11.2 Honor file timestamps
  466. The timestamp of the transferred file should reflect that of the original file.
  467. 11.3 Use NTLMv2
  468. Currently the SMB authentication uses NTLMv1.
  469. 11.4 Create remote directories
  470. Support for creating remote directories when uploading a file to a directory
  471. that doesn't exist on the server, just like --ftp-create-dirs.
  472. 12. New protocols
  473. 13. SSL
  474. 13.1 TLS-PSK with OpenSSL
  475. Transport Layer Security pre-shared key ciphersuites (TLS-PSK) is a set of
  476. cryptographic protocols that provide secure communication based on pre-shared
  477. keys (PSKs). These pre-shared keys are symmetric keys shared in advance among
  478. the communicating parties.
  479. https://github.com/curl/curl/issues/5081
  480. 13.2 Provide mutex locking API
  481. Provide a libcurl API for setting mutex callbacks in the underlying SSL
  482. library, so that the same application code can use mutex-locking
  483. independently of OpenSSL or GnutTLS being used.
  484. 13.3 Support in-memory certs/ca certs/keys
  485. You can specify the private and public keys for SSH/SSL as file paths. Some
  486. programs want to avoid using files and instead just pass them as in-memory
  487. data blobs. There's probably a challenge to make this work across the
  488. plethory of different TLS and SSH backends that curl supports.
  489. https://github.com/curl/curl/issues/2310
  490. 13.4 Cache/share OpenSSL contexts
  491. "Look at SSL cafile - quick traces look to me like these are done on every
  492. request as well, when they should only be necessary once per SSL context (or
  493. once per handle)". The major improvement we can rather easily do is to make
  494. sure we don't create and kill a new SSL "context" for every request, but
  495. instead make one for every connection and re-use that SSL context in the same
  496. style connections are re-used. It will make us use slightly more memory but
  497. it will libcurl do less creations and deletions of SSL contexts.
  498. Technically, the "caching" is probably best implemented by getting added to
  499. the share interface so that easy handles who want to and can reuse the
  500. context specify that by sharing with the right properties set.
  501. https://github.com/curl/curl/issues/1110
  502. 13.5 Export session ids
  503. Add an interface to libcurl that enables "session IDs" to get
  504. exported/imported. Cris Bailiff said: "OpenSSL has functions which can
  505. serialise the current SSL state to a buffer of your choice, and recover/reset
  506. the state from such a buffer at a later date - this is used by mod_ssl for
  507. apache to implement and SSL session ID cache".
  508. 13.6 Provide callback for cert verification
  509. OpenSSL supports a callback for customised verification of the peer
  510. certificate, but this doesn't seem to be exposed in the libcurl APIs. Could
  511. it be? There's so much that could be done if it were!
  512. 13.7 improve configure --with-ssl
  513. make the configure --with-ssl option first check for OpenSSL, then GnuTLS,
  514. then NSS...
  515. 13.8 Support DANE
  516. DNS-Based Authentication of Named Entities (DANE) is a way to provide SSL
  517. keys and certs over DNS using DNSSEC as an alternative to the CA model.
  518. https://www.rfc-editor.org/rfc/rfc6698.txt
  519. An initial patch was posted by Suresh Krishnaswamy on March 7th 2013
  520. (https://curl.haxx.se/mail/lib-2013-03/0075.html) but it was a too simple
  521. approach. See Daniel's comments:
  522. https://curl.haxx.se/mail/lib-2013-03/0103.html . libunbound may be the
  523. correct library to base this development on.
  524. Björn Stenberg wrote a separate initial take on DANE that was never
  525. completed.
  526. 13.9 TLS record padding
  527. TLS (1.3) offers optional record padding and OpenSSL provides an API for it.
  528. I could make sense for libcurl to offer this ability to applications to make
  529. traffic patterns harder to figure out by network traffic observers.
  530. See https://github.com/curl/curl/issues/5398
  531. 13.10 Support Authority Information Access certificate extension (AIA)
  532. AIA can provide various things like CRLs but more importantly information
  533. about intermediate CA certificates that can allow validation path to be
  534. fulfilled when the HTTPS server doesn't itself provide them.
  535. Since AIA is about downloading certs on demand to complete a TLS handshake,
  536. it is probably a bit tricky to get done right.
  537. See https://github.com/curl/curl/issues/2793
  538. 13.11 Support intermediate & root pinning for PINNEDPUBLICKEY
  539. CURLOPT_PINNEDPUBLICKEY does not consider the hashes of intermediate & root
  540. certificates when comparing the pinned keys. Therefore it is not compatible
  541. with "HTTP Public Key Pinning" as there also intermediate and root
  542. certificates can be pinned. This is very useful as it prevents webadmins from
  543. "locking themself out of their servers".
  544. Adding this feature would make curls pinning 100% compatible to HPKP and
  545. allow more flexible pinning.
  546. 13.12 Support HSTS
  547. "HTTP Strict Transport Security" is TOFU (trust on first use), time-based
  548. features indicated by a HTTP header send by the webserver. It is widely used
  549. in browsers and it's purpose is to prevent insecure HTTP connections after a
  550. previous HTTPS connection. It protects against SSLStripping attacks.
  551. Doc: https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_strict_transport_security
  552. RFC 6797: https://tools.ietf.org/html/rfc6797
  553. 13.13 Make sure we forbid TLS 1.3 post-handshake authentication
  554. RFC 8740 explains how using HTTP/2 must forbid the use of TLS 1.3
  555. post-handshake authentication. We should make sure to live up to that.
  556. See https://github.com/curl/curl/issues/5396
  557. 13.14 Support the clienthello extension
  558. Certain stupid networks and middle boxes have a problem with SSL handshake
  559. pakets that are within a certain size range because how that sets some bits
  560. that previously (in older TLS version) were not set. The clienthello
  561. extension adds padding to avoid that size range.
  562. https://tools.ietf.org/html/rfc7685
  563. https://github.com/curl/curl/issues/2299
  564. 14. GnuTLS
  565. 14.2 check connection
  566. Add a way to check if the connection seems to be alive, to correspond to the
  567. SSL_peak() way we use with OpenSSL.
  568. 15. Schannel
  569. 15.1 Extend support for client certificate authentication
  570. The existing support for the -E/--cert and --key options could be
  571. extended by supplying a custom certificate and key in PEM format, see:
  572. - Getting a Certificate for Schannel
  573. https://msdn.microsoft.com/en-us/library/windows/desktop/aa375447.aspx
  574. 15.2 Extend support for the --ciphers option
  575. The existing support for the --ciphers option could be extended
  576. by mapping the OpenSSL/GnuTLS cipher suites to the Schannel APIs, see
  577. - Specifying Schannel Ciphers and Cipher Strengths
  578. https://msdn.microsoft.com/en-us/library/windows/desktop/aa380161.aspx
  579. 15.3 Add option to disable client certificate auto-send
  580. Microsoft says "By default, Schannel will, with no notification to the client,
  581. attempt to locate a client certificate and send it to the server." That could
  582. be considered a privacy violation and unexpected.
  583. Some Windows users have come to expect that default behavior and to change the
  584. default to make it consistent with other SSL backends would be a breaking
  585. change. An option should be added that can be used to disable the default
  586. Schannel auto-send behavior.
  587. https://github.com/curl/curl/issues/2262
  588. 15.4 Add option to allow abrupt server closure
  589. libcurl w/schannel will error without a known termination point from the
  590. server (such as length of transfer, or SSL "close notify" alert) to prevent
  591. against a truncation attack. Really old servers may neglect to send any
  592. termination point. An option could be added to ignore such abrupt closures.
  593. https://github.com/curl/curl/issues/4427
  594. 16. SASL
  595. 16.1 Other authentication mechanisms
  596. Add support for other authentication mechanisms such as OLP,
  597. GSS-SPNEGO and others.
  598. 16.2 Add QOP support to GSSAPI authentication
  599. Currently the GSSAPI authentication only supports the default QOP of auth
  600. (Authentication), whilst Kerberos V5 supports both auth-int (Authentication
  601. with integrity protection) and auth-conf (Authentication with integrity and
  602. privacy protection).
  603. 16.3 Support binary messages (i.e.: non-base64)
  604. Mandatory to support LDAP SASL authentication.
  605. 17. SSH protocols
  606. 17.1 Multiplexing
  607. SSH is a perfectly fine multiplexed protocols which would allow libcurl to do
  608. multiple parallel transfers from the same host using the same connection,
  609. much in the same spirit as HTTP/2 does. libcurl however does not take
  610. advantage of that ability but will instead always create a new connection for
  611. new transfers even if an existing connection already exists to the host.
  612. To fix this, libcurl would have to detect an existing connection and "attach"
  613. the new transfer to the existing one.
  614. 17.2 Handle growing SFTP files
  615. The SFTP code in libcurl checks the file size *before* a transfer starts and
  616. then proceeds to transfer exactly that amount of data. If the remote file
  617. grows while the transfer is in progress libcurl won't notice and will not
  618. adapt. The OpenSSH SFTP command line tool does and libcurl could also just
  619. attempt to download more to see if there is more to get...
  620. https://github.com/curl/curl/issues/4344
  621. 17.3 Support better than MD5 hostkey hash
  622. libcurl offers the CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 option for verifying the
  623. server's key. MD5 is generally being deprecated so we should implement
  624. support for stronger hashing algorithms. libssh2 itself is what provides this
  625. underlying functionality and it supports at least SHA-1 as an alternative.
  626. SHA-1 is also being deprecated these days so we should consider working with
  627. libssh2 to instead offer support for SHA-256 or similar.
  628. 17.4 Support CURLOPT_PREQUOTE
  629. The two other QUOTE options are supported for SFTP, but this was left out for
  630. unknown reasons!
  631. 18. Command line tool
  632. 18.1 sync
  633. "curl --sync http://example.com/feed[1-100].rss" or
  634. "curl --sync http://example.net/{index,calendar,history}.html"
  635. Downloads a range or set of URLs using the remote name, but only if the
  636. remote file is newer than the local file. A Last-Modified HTTP date header
  637. should also be used to set the mod date on the downloaded file.
  638. 18.2 glob posts
  639. Globbing support for -d and -F, as in 'curl -d "name=foo[0-9]" URL'.
  640. This is easily scripted though.
  641. 18.3 prevent file overwriting
  642. Add an option that prevents curl from overwriting existing local files. When
  643. used, and there already is an existing file with the target file name
  644. (either -O or -o), a number should be appended (and increased if already
  645. existing). So that index.html becomes first index.html.1 and then
  646. index.html.2 etc.
  647. 18.4 --proxycommand
  648. Allow the user to make curl run a command and use its stdio to make requests
  649. and not do any network connection by itself. Example:
  650. curl --proxycommand 'ssh pi@raspberrypi.local -W 10.1.1.75 80' \
  651. http://some/otherwise/unavailable/service.php
  652. See https://github.com/curl/curl/issues/4941
  653. 18.5 UTF-8 filenames in Content-Disposition
  654. RFC 6266 documents how UTF-8 names can be passed to a client in the
  655. Content-Disposition header, and curl does not support this.
  656. https://github.com/curl/curl/issues/1888
  657. 18.6 Option to make -Z merge lined based outputs on stdout
  658. When a user requests multiple lined based files using -Z and sends them to
  659. stdout, curl will not "merge" and send complete lines fine but may very well
  660. send partial lines from several sources.
  661. https://github.com/curl/curl/issues/5175
  662. 18.7 at least N milliseconds between requests
  663. Allow curl command lines issue a lot of request against services that limit
  664. users to no more than N requests/second or similar. Could be implemented with
  665. an option asking that at least a certain time has elapsed since the previous
  666. request before the next one will be performed. Example:
  667. $ curl "https://example.com/api?input=[1-1000]" -d yadayada --after 500
  668. See https://github.com/curl/curl/issues/3920
  669. 18.8 Consider convenience options for JSON and XML?
  670. Could we add `--xml` or `--json` to add headers needed to call rest API:
  671. `--xml` adds -H 'Content-Type: application/xml' -H "Accept: application/xml" and
  672. `--json` adds -H 'Content-Type: application/json' -H "Accept: application/json"
  673. Setting Content-Type when doing a GET or any other method without a body
  674. would be a bit strange I think - so maybe only add CT for requests with body?
  675. Maybe plain `--xml` and ` --json` are a bit too brief and generic. Maybe
  676. `--http-json` etc?
  677. See https://github.com/curl/curl/issues/5203
  678. 18.9 Choose the name of file in braces for complex URLs
  679. When using braces to download a list of URLs and you use complicated names
  680. in the list of alternatives, it could be handy to allow curl to use other
  681. names when saving.
  682. Consider a way to offer that. Possibly like
  683. {partURL1:name1,partURL2:name2,partURL3:name3} where the name following the
  684. colon is the output name.
  685. See https://github.com/curl/curl/issues/221
  686. 18.10 improve how curl works in a windows console window
  687. If you pull the scrollbar when transferring with curl in a Windows console
  688. window, the transfer is interrupted and can get disconnected. This can
  689. probably be improved. See https://github.com/curl/curl/issues/322
  690. 18.11 Windows: set attribute 'archive' for completed downloads
  691. The archive bit (FILE_ATTRIBUTE_ARCHIVE, 0x20) separates files that shall be
  692. backed up from those that are either not ready or have not changed.
  693. Downloads in progress are neither ready to be backed up, nor should they be
  694. opened by a different process. Only after a download has been completed it's
  695. sensible to include it in any integer snapshot or backup of the system.
  696. See https://github.com/curl/curl/issues/3354
  697. 18.12 keep running, read instructions from pipe/socket
  698. Provide an option that makes curl not exit after the last URL (or even work
  699. without a given URL), and then make it read instructions passed on a pipe or
  700. over a socket to make further instructions so that a second subsequent curl
  701. invoke can talk to the still running instance and ask for transfers to get
  702. done, and thus maintain its connection pool, DNS cache and more.
  703. 18.13 Ratelimit or wait between serial requests
  704. Consider a command line option that can make curl do multiple serial requests
  705. slow, potentially with a (random) wait between transfers. There's also a
  706. propsed set of standard HTTP headers to let servers let the client adapt to
  707. its rate limits:
  708. https://www.ietf.org/id/draft-polli-ratelimit-headers-02.html
  709. See https://github.com/curl/curl/issues/5406
  710. 18.14 --dry-run
  711. A command line option that makes curl show exactly what it would do and send
  712. if it would run for real.
  713. See https://github.com/curl/curl/issues/5426
  714. 18.15 --retry should resume
  715. When --retry is used and curl actually retries transfer, it should use the
  716. already transferred data and do a resumed transfer for the rest (when
  717. possible) so that it doesn't have to transfer the same data again that was
  718. already transferred before the retry.
  719. See https://github.com/curl/curl/issues/1084
  720. 18.16 send only part of --data
  721. When the user only wants to send a small piece of the data provided with
  722. --data or --data-binary, like when that data is a huge file, consider a way
  723. to specify that curl should only send a piece of that. One suggested syntax
  724. would be: "--data-binary @largefile.zip!1073741823-2147483647".
  725. See https://github.com/curl/curl/issues/1200
  726. 18.17 consider file name from the redirected URL with -O ?
  727. When a user gives a URL and uses -O, and curl follows a redirect to a new
  728. URL, the file name is not extracted and used from the newly redirected-to URL
  729. even if the new URL may have a much more sensible file name.
  730. This is clearly documented and helps for security since there's no surprise
  731. to users which file name that might get overwritten. But maybe a new option
  732. could allow for this or maybe -J should imply such a treatment as well as -J
  733. already allows for the server to decide what file name to use so it already
  734. provides the "may overwrite any file" risk.
  735. This is extra tricky if the original URL has no file name part at all since
  736. then the current code path will error out with an error message, and we can't
  737. *know* already at that point if curl will be redirected to a URL that has a
  738. file name...
  739. See https://github.com/curl/curl/issues/1241
  740. 18.18 retry on network is unreachable
  741. The --retry option retries transfers on "transient failures". We later added
  742. --retry-connrefused to also retry for "connection refused" errors.
  743. Suggestions have been brought to also allow retry on "network is unreachable"
  744. errors and while totally reasonable, maybe we should consider a way to make
  745. this more configurable than to add a new option for every new error people
  746. want to retry for?
  747. https://github.com/curl/curl/issues/1603
  748. 18.19 expand ~/ in config files
  749. For example .curlrc could benefit from being able to do this.
  750. See https://github.com/curl/curl/issues/2317
  751. 18.20 host name sections in config files
  752. config files would be more powerful if they could set different
  753. configurations depending on used URLs, host name or possibly origin. Then a
  754. default .curlrc could a specific user-agent only when doing requests against
  755. a certain site.
  756. 18.21 retry on the redirected-to URL
  757. When curl is told to --retry a failed transfer and follows redirects, it
  758. might get a HTTP 429 response from the redirected-to URL and not the original
  759. one, which then could make curl decide to rather retry the transfer on that
  760. URL only instead of the original operation to the original URL.
  761. Perhaps extra emphasized if the original transfer is a large POST that
  762. redirects to a separate GET, and that GET is what gets the 529
  763. See https://github.com/curl/curl/issues/5462
  764. 18.22 Add flag to specify download directory
  765. A directory name to basically prepend to the file name -O and -o use. Saves
  766. user from having to manually "cd" to the directory. Especially useful for
  767. command lines with multiple -O and different download directories.
  768. 19. Build
  769. 19.1 roffit
  770. Consider extending 'roffit' to produce decent ASCII output, and use that
  771. instead of (g)nroff when building src/tool_hugehelp.c
  772. 19.2 Enable PIE and RELRO by default
  773. Especially when having programs that execute curl via the command line, PIE
  774. renders the exploitation of memory corruption vulnerabilities a lot more
  775. difficult. This can be attributed to the additional information leaks being
  776. required to conduct a successful attack. RELRO, on the other hand, masks
  777. different binary sections like the GOT as read-only and thus kills a handful
  778. of techniques that come in handy when attackers are able to arbitrarily
  779. overwrite memory. A few tests showed that enabling these features had close
  780. to no impact, neither on the performance nor on the general functionality of
  781. curl.
  782. 20. Test suite
  783. 20.1 SSL tunnel
  784. Make our own version of stunnel for simple port forwarding to enable HTTPS
  785. and FTP-SSL tests without the stunnel dependency, and it could allow us to
  786. provide test tools built with either OpenSSL or GnuTLS
  787. 20.2 nicer lacking perl message
  788. If perl wasn't found by the configure script, don't attempt to run the tests
  789. but explain something nice why it doesn't.
  790. 20.3 more protocols supported
  791. Extend the test suite to include more protocols. The telnet could just do FTP
  792. or http operations (for which we have test servers).
  793. 20.4 more platforms supported
  794. Make the test suite work on more platforms. OpenBSD and Mac OS. Remove
  795. fork()s and it should become even more portable.
  796. 20.5 Add support for concurrent connections
  797. Tests 836, 882 and 938 were designed to verify that separate connections
  798. aren't used when using different login credentials in protocols that
  799. shouldn't re-use a connection under such circumstances.
  800. Unfortunately, ftpserver.pl doesn't appear to support multiple concurrent
  801. connections. The read while() loop seems to loop until it receives a
  802. disconnect from the client, where it then enters the waiting for connections
  803. loop. When the client opens a second connection to the server, the first
  804. connection hasn't been dropped (unless it has been forced - which we
  805. shouldn't do in these tests) and thus the wait for connections loop is never
  806. entered to receive the second connection.
  807. 20.6 Use the RFC6265 test suite
  808. A test suite made for HTTP cookies (RFC 6265) by Adam Barth is available at
  809. https://github.com/abarth/http-state/tree/master/tests
  810. It'd be really awesome if someone would write a script/setup that would run
  811. curl with that test suite and detect deviances. Ideally, that would even be
  812. incorporated into our regular test suite.
  813. 20.7 Support LD_PRELOAD on macOS
  814. LD_RELOAD doesn't work on macOS, but there are tests which require it to run
  815. properly. Look into making the preload support in runtests.pl portable such
  816. that it uses DYLD_INSERT_LIBRARIES on macOS.
  817. 20.8 Run web-platform-tests url tests
  818. Run web-platform-tests url tests and compare results with browsers on wpt.fyi
  819. It would help us find issues to fix and help us document where our parser
  820. differs from the WHATWG URL spec parsers.
  821. See https://github.com/curl/curl/issues/4477
  822. 20.9 Use "random" ports for the test servers
  823. Instead of insisting and using fixed port numbers for the tests (even though
  824. they can be changed with a switch), consider letting each server pick a
  825. random available one at start-up, store that info in a file and let the test
  826. suite use that.
  827. We could then remove the "check that it is our server that's running"-check
  828. and we would immediately detect when we write tests wrongly to use hard-coded
  829. port numbers.
  830. 21. Next SONAME bump
  831. 21.1 http-style HEAD output for FTP
  832. #undef CURL_FTP_HTTPSTYLE_HEAD in lib/ftp.c to remove the HTTP-style headers
  833. from being output in NOBODY requests over FTP
  834. 21.2 combine error codes
  835. Combine some of the error codes to remove duplicates. The original
  836. numbering should not be changed, and the old identifiers would be
  837. macroed to the new ones in an CURL_NO_OLDIES section to help with
  838. backward compatibility.
  839. Candidates for removal and their replacements:
  840. CURLE_FILE_COULDNT_READ_FILE => CURLE_REMOTE_FILE_NOT_FOUND
  841. CURLE_FTP_COULDNT_RETR_FILE => CURLE_REMOTE_FILE_NOT_FOUND
  842. CURLE_FTP_COULDNT_USE_REST => CURLE_RANGE_ERROR
  843. CURLE_FUNCTION_NOT_FOUND => CURLE_FAILED_INIT
  844. CURLE_LDAP_INVALID_URL => CURLE_URL_MALFORMAT
  845. CURLE_TFTP_NOSUCHUSER => CURLE_TFTP_ILLEGAL
  846. CURLE_TFTP_NOTFOUND => CURLE_REMOTE_FILE_NOT_FOUND
  847. CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED
  848. 21.3 extend CURLOPT_SOCKOPTFUNCTION prototype
  849. The current prototype only provides 'purpose' that tells what the
  850. connection/socket is for, but not any protocol or similar. It makes it hard
  851. for applications to differentiate on TCP vs UDP and even HTTP vs FTP and
  852. similar.
  853. 22. Next major release
  854. 22.1 cleanup return codes
  855. curl_easy_cleanup() returns void, but curl_multi_cleanup() returns a
  856. CURLMcode. These should be changed to be the same.
  857. 22.2 remove obsolete defines
  858. remove obsolete defines from curl/curl.h
  859. 22.3 size_t
  860. make several functions use size_t instead of int in their APIs
  861. 22.4 remove several functions
  862. remove the following functions from the public API:
  863. curl_getenv
  864. curl_mprintf (and variations)
  865. curl_strequal
  866. curl_strnequal
  867. They will instead become curlx_ - alternatives. That makes the curl app
  868. still capable of using them, by building with them from source.
  869. These functions have no purpose anymore:
  870. curl_multi_socket
  871. curl_multi_socket_all
  872. 22.5 remove CURLOPT_FAILONERROR
  873. Remove support for CURLOPT_FAILONERROR, it has gotten too kludgy and weird
  874. internally. Let the app judge success or not for itself.
  875. 22.7 remove progress meter from libcurl
  876. The internally provided progress meter output doesn't belong in the library.
  877. Basically no application wants it (apart from curl) but instead applications
  878. can and should do their own progress meters using the progress callback.
  879. The progress callback should then be bumped as well to get proper 64bit
  880. variable types passed to it instead of doubles so that big files work
  881. correctly.
  882. 22.8 remove 'curl_httppost' from public
  883. curl_formadd() was made to fill in a public struct, but the fact that the
  884. struct is public is never really used by application for their own advantage
  885. but instead often restricts how the form functions can or can't be modified.
  886. Changing them to return a private handle will benefit the implementation and
  887. allow us much greater freedoms while still maintaining a solid API and ABI.