TODO 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193
  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.2 More data sharing
  16. 1.3 struct lifreq
  17. 1.4 signal-based resolver timeouts
  18. 1.5 get rid of PATH_MAX
  19. 1.6 Modified buffer size approach
  20. 1.7 Detect when called from within callbacks
  21. 1.8 CURLOPT_RESOLVE for any port number
  22. 1.9 Cache negative name resolves
  23. 1.11 minimize dependencies with dynamically loaded modules
  24. 1.12 have form functions use CURL handle argument
  25. 1.14 Typesafe curl_easy_setopt()
  26. 1.15 Monitor connections in the connection pool
  27. 1.16 Try to URL encode given URL
  28. 1.17 Add support for IRIs
  29. 1.18 try next proxy if one doesn't work
  30. 1.19 Timeout idle connections from the pool
  31. 1.20 SRV and URI DNS records
  32. 1.21 API for URL parsing/splitting
  33. 1.23 Offer API to flush the connection pool
  34. 1.24 TCP Fast Open for windows
  35. 2. libcurl - multi interface
  36. 2.1 More non-blocking
  37. 2.2 Better support for same name resolves
  38. 2.3 Non-blocking curl_multi_remove_handle()
  39. 2.4 Split connect and authentication process
  40. 2.5 Edge-triggered sockets should work
  41. 3. Documentation
  42. 3.2 Provide cmake config-file
  43. 4. FTP
  44. 4.1 HOST
  45. 4.2 Alter passive/active on failure and retry
  46. 4.3 Earlier bad letter detection
  47. 4.4 REST for large files
  48. 4.5 ASCII support
  49. 4.6 GSSAPI via Windows SSPI
  50. 4.7 STAT for LIST without data connection
  51. 5. HTTP
  52. 5.1 Better persistency for HTTP 1.0
  53. 5.2 support FF3 sqlite cookie files
  54. 5.3 Rearrange request header order
  55. 5.4 HTTP Digest using SHA-256
  56. 5.5 auth= in URLs
  57. 5.6 Refuse "downgrade" redirects
  58. 5.7 Brotli compression
  59. 5.8 QUIC
  60. 5.9 Improve formpost API
  61. 5.10 Leave secure cookies alone
  62. 5.11 Chunked transfer multipart formpost
  63. 6. TELNET
  64. 6.1 ditch stdin
  65. 6.2 ditch telnet-specific select
  66. 6.3 feature negotiation debug data
  67. 7. SMTP
  68. 7.1 Pipelining
  69. 7.2 Enhanced capability support
  70. 7.3 Add CURLOPT_MAIL_CLIENT option
  71. 8. POP3
  72. 8.1 Pipelining
  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. 11. SMB
  79. 11.1 File listing support
  80. 11.2 Honor file timestamps
  81. 11.3 Use NTLMv2
  82. 11.4 Create remote directories
  83. 12. New protocols
  84. 12.1 RSYNC
  85. 13. SSL
  86. 13.1 Disable specific versions
  87. 13.2 Provide mutex locking API
  88. 13.3 Evaluate SSL patches
  89. 13.4 Cache/share OpenSSL contexts
  90. 13.5 Export session ids
  91. 13.6 Provide callback for cert verification
  92. 13.7 improve configure --with-ssl
  93. 13.8 Support DANE
  94. 13.10 Support SSLKEYLOGFILE
  95. 13.11 Support intermediate & root pinning for PINNEDPUBLICKEY
  96. 13.12 Support HSTS
  97. 13.13 Support HPKP
  98. 14. GnuTLS
  99. 14.1 SSL engine stuff
  100. 14.2 check connection
  101. 15. WinSSL/SChannel
  102. 15.1 Add support for client certificate authentication
  103. 15.2 Add support for custom server certificate validation
  104. 15.3 Add support for the --ciphers option
  105. 16. SASL
  106. 16.1 Other authentication mechanisms
  107. 16.2 Add QOP support to GSSAPI authentication
  108. 16.3 Support binary messages (i.e.: non-base64)
  109. 17. SSH protocols
  110. 17.1 Multiplexing
  111. 17.2 SFTP performance
  112. 17.3 Support better than MD5 hostkey hash
  113. 17.4 Support CURLOPT_PREQUOTE
  114. 18. Command line tool
  115. 18.1 sync
  116. 18.2 glob posts
  117. 18.3 prevent file overwriting
  118. 18.4 simultaneous parallel transfers
  119. 18.5 provide formpost headers
  120. 18.6 warning when setting an option
  121. 18.8 offer color-coded HTTP header output
  122. 18.9 Choose the name of file in braces for complex URLs
  123. 18.10 improve how curl works in a windows console window
  124. 18.11 -w output to stderr
  125. 18.12 keep running, read instructions from pipe/socket
  126. 18.13 support metalink in http headers
  127. 18.14 --fail without --location should treat 3xx as a failure
  128. 18.15 --retry should resume
  129. 18.16 send only part of --data
  130. 18.17 consider file name from the redirected URL with -O ?
  131. 19. Build
  132. 19.1 roffit
  133. 19.2 Enable PIE and RELRO by default
  134. 20. Test suite
  135. 20.1 SSL tunnel
  136. 20.2 nicer lacking perl message
  137. 20.3 more protocols supported
  138. 20.4 more platforms supported
  139. 20.5 Add support for concurrent connections
  140. 20.6 Use the RFC6265 test suite
  141. 21. Next SONAME bump
  142. 21.1 http-style HEAD output for FTP
  143. 21.2 combine error codes
  144. 21.3 extend CURLOPT_SOCKOPTFUNCTION prototype
  145. 22. Next major release
  146. 22.1 cleanup return codes
  147. 22.2 remove obsolete defines
  148. 22.3 size_t
  149. 22.4 remove several functions
  150. 22.5 remove CURLOPT_FAILONERROR
  151. 22.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
  152. 22.7 remove progress meter from libcurl
  153. 22.8 remove 'curl_httppost' from public
  154. ==============================================================================
  155. 1. libcurl
  156. 1.2 More data sharing
  157. curl_share_* functions already exist and work, and they can be extended to
  158. share more. For example, enable sharing of the ares channel and the
  159. connection cache.
  160. 1.3 struct lifreq
  161. Use 'struct lifreq' and SIOCGLIFADDR instead of 'struct ifreq' and
  162. SIOCGIFADDR on newer Solaris versions as they claim the latter is obsolete.
  163. To support IPv6 interface addresses for network interfaces properly.
  164. 1.4 signal-based resolver timeouts
  165. libcurl built without an asynchronous resolver library uses alarm() to time
  166. out DNS lookups. When a timeout occurs, this causes libcurl to jump from the
  167. signal handler back into the library with a sigsetjmp, which effectively
  168. causes libcurl to continue running within the signal handler. This is
  169. non-portable and could cause problems on some platforms. A discussion on the
  170. problem is available at https://curl.haxx.se/mail/lib-2008-09/0197.html
  171. Also, alarm() provides timeout resolution only to the nearest second. alarm
  172. ought to be replaced by setitimer on systems that support it.
  173. 1.5 get rid of PATH_MAX
  174. Having code use and rely on PATH_MAX is not nice:
  175. http://insanecoding.blogspot.com/2007/11/pathmax-simply-isnt.html
  176. Currently the SSH based code uses it a bit, but to remove PATH_MAX from there
  177. we need libssh2 to properly tell us when we pass in a too small buffer and
  178. its current API (as of libssh2 1.2.7) doesn't.
  179. 1.6 Modified buffer size approach
  180. Current libcurl allocates a fixed 16K size buffer for download and an
  181. additional 16K for upload. They are always unconditionally part of the easy
  182. handle. If CRLF translations are requested, an additional 32K "scratch
  183. buffer" is allocated. A total of 64K transfer buffers in the worst case.
  184. First, while the handles are not actually in use these buffers could be freed
  185. so that lingering handles just kept in queues or whatever waste less memory.
  186. Secondly, SFTP is a protocol that needs to handle many ~30K blocks at once
  187. since each need to be individually acked and therefore libssh2 must be
  188. allowed to send (or receive) many separate ones in parallel to achieve high
  189. transfer speeds. A current libcurl build with a 16K buffer makes that
  190. impossible, but one with a 512K buffer will reach MUCH faster transfers. But
  191. allocating 512K unconditionally for all buffers just in case they would like
  192. to do fast SFTP transfers at some point is not a good solution either.
  193. Dynamically allocate buffer size depending on protocol in use in combination
  194. with freeing it after each individual transfer? Other suggestions?
  195. 1.7 Detect when called from within callbacks
  196. We should set a state variable before calling callbacks, so that we
  197. subsequently can add code within libcurl that returns error if called within
  198. callbacks for when that's not supported.
  199. 1.8 CURLOPT_RESOLVE for any port number
  200. This option allows applications to set a replacement IP address for a given
  201. host + port pair. Consider making support for providing a replacement address
  202. for the host name on all port numbers.
  203. See https://github.com/curl/curl/issues/1264
  204. 1.9 Cache negative name resolves
  205. A name resolve that has failed is likely to fail when made again within a
  206. short period of time. Currently we only cache positive responses.
  207. 1.11 minimize dependencies with dynamically loaded modules
  208. We can create a system with loadable modules/plug-ins, where these modules
  209. would be the ones that link to 3rd party libs. That would allow us to avoid
  210. having to load ALL dependencies since only the necessary ones for this
  211. app/invoke/used protocols would be necessary to load. See
  212. https://github.com/curl/curl/issues/349
  213. 1.12 have form functions use CURL handle argument
  214. curl_formadd() and curl_formget() both currently have no CURL handle
  215. argument, but both can use a callback that is set in the easy handle, and
  216. thus curl_formget() with callback cannot function without first having
  217. curl_easy_perform() (or similar) called - which is hard to grasp and a design
  218. mistake.
  219. The curl_formadd() design can probably also be reconsidered to make it easier
  220. to use and less error-prone. Probably easiest by splitting it into several
  221. function calls.
  222. 1.14 Typesafe curl_easy_setopt()
  223. One of the most common problems in libcurl using applications is the lack of
  224. type checks for curl_easy_setopt() which happens because it accepts varargs
  225. and thus can take any type.
  226. One possible solution to this is to introduce a few different versions of the
  227. setopt version for the different kinds of data you can set.
  228. curl_easy_set_num() - sets a long value
  229. curl_easy_set_large() - sets a curl_off_t value
  230. curl_easy_set_ptr() - sets a pointer
  231. curl_easy_set_cb() - sets a callback PLUS its callback data
  232. 1.15 Monitor connections in the connection pool
  233. libcurl's connection cache or pool holds a number of open connections for the
  234. purpose of possible subsequent connection reuse. It may contain a few up to a
  235. significant amount of connections. Currently, libcurl leaves all connections
  236. as they are and first when a connection is iterated over for matching or
  237. reuse purpose it is verified that it is still alive.
  238. Those connections may get closed by the server side for idleness or they may
  239. get a HTTP/2 ping from the peer to verify that they're still alive. By adding
  240. monitoring of the connections while in the pool, libcurl can detect dead
  241. connections (and close them) better and earlier, and it can handle HTTP/2
  242. pings to keep such ones alive even when not actively doing transfers on them.
  243. 1.16 Try to URL encode given URL
  244. Given a URL that for example contains spaces, libcurl could have an option
  245. that would try somewhat harder than it does now and convert spaces to %20 and
  246. perhaps URL encoded byte values over 128 etc (basically do what the redirect
  247. following code already does).
  248. https://github.com/curl/curl/issues/514
  249. 1.17 Add support for IRIs
  250. IRIs (RFC 3987) allow localized, non-ascii, names in the URL. To properly
  251. support this, curl/libcurl would need to translate/encode the given input
  252. from the input string encoding into percent encoded output "over the wire".
  253. To make that work smoothly for curl users even on Windows, curl would
  254. probably need to be able to convert from several input encodings.
  255. 1.18 try next proxy if one doesn't work
  256. Allow an application to specify a list of proxies to try, and failing to
  257. connect to the first go on and try the next instead until the list is
  258. exhausted. Browsers support this feature at least when they specify proxies
  259. using PACs.
  260. https://github.com/curl/curl/issues/896
  261. 1.19 Timeout idle connections from the pool
  262. libcurl currently keeps connections in its connection pool for an indefinite
  263. period of time, until it either gets reused, gets noticed that it has been
  264. closed by the server or gets pruned to make room for a new connection.
  265. To reduce overhead (especially for when we add monitoring of the connections
  266. in the pool), we should introduce a timeout so that connections that have
  267. been idle for N seconds get closed.
  268. 1.20 SRV and URI DNS records
  269. Offer support for resolving SRV and URI DNS records for libcurl to know which
  270. server to connect to for various protocols (including HTTP!).
  271. 1.21 API for URL parsing/splitting
  272. libcurl has always parsed URLs internally and never exposed any API or
  273. features to allow applications to do it. Still most or many applications
  274. using libcurl need that ability. In polls to users, we've learned that many
  275. libcurl users would like to see and use such an API.
  276. 1.23 Offer API to flush the connection pool
  277. Sometimes applications want to flush all the existing connections kept alive.
  278. An API could allow a forced flush or just a forced loop that would properly
  279. close all connections that have been closed by the server already.
  280. 1.24 TCP Fast Open for windows
  281. libcurl supports the CURLOPT_TCP_FASTOPEN option since 7.49.0 for Linux and
  282. Mac OS. Windows supports TCP Fast Open starting with Windows 10, version 1607
  283. and we should add support for it.
  284. 2. libcurl - multi interface
  285. 2.1 More non-blocking
  286. Make sure we don't ever loop because of non-blocking sockets returning
  287. EWOULDBLOCK or similar. Blocking cases include:
  288. - Name resolves on non-windows unless c-ares or the threaded resolver is used
  289. - HTTP proxy CONNECT operations
  290. - SOCKS proxy handshakes
  291. - file:// transfers
  292. - TELNET transfers
  293. - The "DONE" operation (post transfer protocol-specific actions) for the
  294. protocols SFTP, SMTP, FTP. Fixing Curl_done() for this is a worthy task.
  295. 2.2 Better support for same name resolves
  296. If a name resolve has been initiated for name NN and a second easy handle
  297. wants to resolve that name as well, make it wait for the first resolve to end
  298. up in the cache instead of doing a second separate resolve. This is
  299. especially needed when adding many simultaneous handles using the same host
  300. name when the DNS resolver can get flooded.
  301. 2.3 Non-blocking curl_multi_remove_handle()
  302. The multi interface has a few API calls that assume a blocking behavior, like
  303. add_handle() and remove_handle() which limits what we can do internally. The
  304. multi API need to be moved even more into a single function that "drives"
  305. everything in a non-blocking manner and signals when something is done. A
  306. remove or add would then only ask for the action to get started and then
  307. multi_perform() etc still be called until the add/remove is completed.
  308. 2.4 Split connect and authentication process
  309. The multi interface treats the authentication process as part of the connect
  310. phase. As such any failures during authentication won't trigger the relevant
  311. QUIT or LOGOFF for protocols such as IMAP, POP3 and SMTP.
  312. 2.5 Edge-triggered sockets should work
  313. The multi_socket API should work with edge-triggered socket events. One of
  314. the internal actions that need to be improved for this to work perfectly is
  315. the 'maxloops' handling in transfer.c:readwrite_data().
  316. 3. Documentation
  317. 3.2 Provide cmake config-file
  318. A config-file package is a set of files provided by us to allow applications
  319. to write cmake scripts to find and use libcurl easier. See
  320. https://github.com/curl/curl/issues/885
  321. 4. FTP
  322. 4.1 HOST
  323. HOST is a command for a client to tell which host name to use, to offer FTP
  324. servers named-based virtual hosting:
  325. https://tools.ietf.org/html/rfc7151
  326. 4.2 Alter passive/active on failure and retry
  327. When trying to connect passively to a server which only supports active
  328. connections, libcurl returns CURLE_FTP_WEIRD_PASV_REPLY and closes the
  329. connection. There could be a way to fallback to an active connection (and
  330. vice versa). https://curl.haxx.se/bug/feature.cgi?id=1754793
  331. 4.3 Earlier bad letter detection
  332. Make the detection of (bad) %0d and %0a codes in FTP URL parts earlier in the
  333. process to avoid doing a resolve and connect in vain.
  334. 4.4 REST for large files
  335. REST fix for servers not behaving well on >2GB requests. This should fail if
  336. the server doesn't set the pointer to the requested index. The tricky
  337. (impossible?) part is to figure out if the server did the right thing or not.
  338. 4.5 ASCII support
  339. FTP ASCII transfers do not follow RFC959. They don't convert the data
  340. accordingly.
  341. 4.6 GSSAPI via Windows SSPI
  342. In addition to currently supporting the SASL GSSAPI mechanism (Kerberos V5)
  343. via third-party GSS-API libraries, such as Heimdal or MIT Kerberos, also add
  344. support for GSSAPI authentication via Windows SSPI.
  345. 4.7 STAT for LIST without data connection
  346. Some FTP servers allow STAT for listing directories instead of using LIST, and
  347. the response is then sent over the control connection instead of as the
  348. otherwise usedw data connection: http://www.nsftools.com/tips/RawFTP.htm#STAT
  349. This is not detailed in any FTP specification.
  350. 5. HTTP
  351. 5.1 Better persistency for HTTP 1.0
  352. "Better" support for persistent connections over HTTP 1.0
  353. https://curl.haxx.se/bug/feature.cgi?id=1089001
  354. 5.2 support FF3 sqlite cookie files
  355. Firefox 3 is changing from its former format to a a sqlite database instead.
  356. We should consider how (lib)curl can/should support this.
  357. https://curl.haxx.se/bug/feature.cgi?id=1871388
  358. 5.3 Rearrange request header order
  359. Server implementors often make an effort to detect browser and to reject
  360. clients it can detect to not match. One of the last details we cannot yet
  361. control in libcurl's HTTP requests, which also can be exploited to detect
  362. that libcurl is in fact used even when it tries to impersonate a browser, is
  363. the order of the request headers. I propose that we introduce a new option in
  364. which you give headers a value, and then when the HTTP request is built it
  365. sorts the headers based on that number. We could then have internally created
  366. headers use a default value so only headers that need to be moved have to be
  367. specified.
  368. 5.4 HTTP Digest using SHA-256
  369. RFC 7616 introduces an update to the HTTP Digest authentication
  370. specification, which amongst other thing defines how new digest algorithms
  371. can be used instead of MD5 which is considered old and not recommended.
  372. See https://tools.ietf.org/html/rfc7616 and
  373. https://github.com/curl/curl/issues/1018
  374. 5.5 auth= in URLs
  375. Add the ability to specify the preferred authentication mechanism to use by
  376. using ;auth=<mech> in the login part of the URL.
  377. For example:
  378. http://test:pass;auth=NTLM@example.com would be equivalent to specifying --user
  379. test:pass;auth=NTLM or --user test:pass --ntlm from the command line.
  380. Additionally this should be implemented for proxy base URLs as well.
  381. 5.6 Refuse "downgrade" redirects
  382. See https://github.com/curl/curl/issues/226
  383. Consider a way to tell curl to refuse to "downgrade" protocol with a redirect
  384. and/or possibly a bit that refuses redirect to change protocol completely.
  385. 5.7 Brotli compression
  386. Brotli compression performs better than gzip and is being implemented by
  387. browsers and servers widely. The algorithm: https://github.com/google/brotli
  388. The Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=366559
  389. 5.8 QUIC
  390. The standardization process of QUIC has been taken to the IETF and can be
  391. followed on the [IETF QUIC Mailing
  392. list](https://www.ietf.org/mailman/listinfo/quic). I'd like us to get on the
  393. bandwagon. Ideally, this would be done with a separate library/project to
  394. handle the binary/framing layer in a similar fashion to how HTTP/2 is
  395. implemented. This, to allow other projects to benefit from the work and to
  396. thus broaden the interest and chance of others to participate.
  397. 5.9 Improve formpost API
  398. Revamp the formpost API and making something that is easier to use and
  399. understand:
  400. https://github.com/curl/curl/wiki/formpost-API-redesigned
  401. 5.10 Leave secure cookies alone
  402. Non-secure origins (HTTP sites) should not be allowed to set or modify
  403. cookies with the 'secure' property:
  404. https://tools.ietf.org/html/draft-ietf-httpbis-cookie-alone-01
  405. 5.11 Chunked transfer multipart formpost
  406. For a case where the file is being made during the upload is progressing
  407. (like passed on stdin to the curl tool), we cannot know the size before-hand
  408. and we rather not read the entire thing into memory before it can start the
  409. upload.
  410. https://github.com/curl/curl/issues/1139
  411. 6. TELNET
  412. 6.1 ditch stdin
  413. Reading input (to send to the remote server) on stdin is a crappy solution for
  414. library purposes. We need to invent a good way for the application to be able
  415. to provide the data to send.
  416. 6.2 ditch telnet-specific select
  417. Move the telnet support's network select() loop go away and merge the code
  418. into the main transfer loop. Until this is done, the multi interface won't
  419. work for telnet.
  420. 6.3 feature negotiation debug data
  421. Add telnet feature negotiation data to the debug callback as header data.
  422. 7. SMTP
  423. 7.1 Pipelining
  424. Add support for pipelining emails.
  425. 7.2 Enhanced capability support
  426. Add the ability, for an application that uses libcurl, to obtain the list of
  427. capabilities returned from the EHLO command.
  428. 7.3 Add CURLOPT_MAIL_CLIENT option
  429. Rather than use the URL to specify the mail client string to present in the
  430. HELO and EHLO commands, libcurl should support a new CURLOPT specifically for
  431. specifying this data as the URL is non-standard and to be honest a bit of a
  432. hack ;-)
  433. Please see the following thread for more information:
  434. https://curl.haxx.se/mail/lib-2012-05/0178.html
  435. 8. POP3
  436. 8.1 Pipelining
  437. Add support for pipelining commands.
  438. 8.2 Enhanced capability support
  439. Add the ability, for an application that uses libcurl, to obtain the list of
  440. capabilities returned from the CAPA command.
  441. 9. IMAP
  442. 9.1 Enhanced capability support
  443. Add the ability, for an application that uses libcurl, to obtain the list of
  444. capabilities returned from the CAPABILITY command.
  445. 10. LDAP
  446. 10.1 SASL based authentication mechanisms
  447. Currently the LDAP module only supports ldap_simple_bind_s() in order to bind
  448. to an LDAP server. However, this function sends username and password details
  449. using the simple authentication mechanism (as clear text). However, it should
  450. be possible to use ldap_bind_s() instead specifying the security context
  451. information ourselves.
  452. 11. SMB
  453. 11.1 File listing support
  454. Add support for listing the contents of a SMB share. The output should probably
  455. be the same as/similar to FTP.
  456. 11.2 Honor file timestamps
  457. The timestamp of the transferred file should reflect that of the original file.
  458. 11.3 Use NTLMv2
  459. Currently the SMB authentication uses NTLMv1.
  460. 11.4 Create remote directories
  461. Support for creating remote directories when uploading a file to a directory
  462. that doesn't exist on the server, just like --ftp-create-dirs.
  463. 12. New protocols
  464. 12.1 RSYNC
  465. There's no RFC for the protocol or an URI/URL format. An implementation
  466. should most probably use an existing rsync library, such as librsync.
  467. 13. SSL
  468. 13.1 Disable specific versions
  469. Provide an option that allows for disabling specific SSL versions, such as
  470. SSLv2 https://curl.haxx.se/bug/feature.cgi?id=1767276
  471. 13.2 Provide mutex locking API
  472. Provide a libcurl API for setting mutex callbacks in the underlying SSL
  473. library, so that the same application code can use mutex-locking
  474. independently of OpenSSL or GnutTLS being used.
  475. 13.3 Evaluate SSL patches
  476. Evaluate/apply Gertjan van Wingerde's SSL patches:
  477. https://curl.haxx.se/mail/lib-2004-03/0087.html
  478. 13.4 Cache/share OpenSSL contexts
  479. "Look at SSL cafile - quick traces look to me like these are done on every
  480. request as well, when they should only be necessary once per SSL context (or
  481. once per handle)". The major improvement we can rather easily do is to make
  482. sure we don't create and kill a new SSL "context" for every request, but
  483. instead make one for every connection and re-use that SSL context in the same
  484. style connections are re-used. It will make us use slightly more memory but
  485. it will libcurl do less creations and deletions of SSL contexts.
  486. Technically, the "caching" is probably best implemented by getting added to
  487. the share interface so that easy handles who want to and can reuse the
  488. context specify that by sharing with the right properties set.
  489. https://github.com/curl/curl/issues/1110
  490. 13.5 Export session ids
  491. Add an interface to libcurl that enables "session IDs" to get
  492. exported/imported. Cris Bailiff said: "OpenSSL has functions which can
  493. serialise the current SSL state to a buffer of your choice, and recover/reset
  494. the state from such a buffer at a later date - this is used by mod_ssl for
  495. apache to implement and SSL session ID cache".
  496. 13.6 Provide callback for cert verification
  497. OpenSSL supports a callback for customised verification of the peer
  498. certificate, but this doesn't seem to be exposed in the libcurl APIs. Could
  499. it be? There's so much that could be done if it were!
  500. 13.7 improve configure --with-ssl
  501. make the configure --with-ssl option first check for OpenSSL, then GnuTLS,
  502. then NSS...
  503. 13.8 Support DANE
  504. DNS-Based Authentication of Named Entities (DANE) is a way to provide SSL
  505. keys and certs over DNS using DNSSEC as an alternative to the CA model.
  506. https://www.rfc-editor.org/rfc/rfc6698.txt
  507. An initial patch was posted by Suresh Krishnaswamy on March 7th 2013
  508. (https://curl.haxx.se/mail/lib-2013-03/0075.html) but it was a too simple
  509. approach. See Daniel's comments:
  510. https://curl.haxx.se/mail/lib-2013-03/0103.html . libunbound may be the
  511. correct library to base this development on.
  512. Björn Stenberg wrote a separate initial take on DANE that was never
  513. completed.
  514. 13.10 Support SSLKEYLOGFILE
  515. When used, Firefox and Chrome dumps their master TLS keys to the file name
  516. this environment variable specifies. This allows tools like for example
  517. Wireshark to capture and decipher TLS traffic to/from those clients. libcurl
  518. could be made to support this more widely (presumably this already works when
  519. built with NSS). Peter Wu made a OpenSSL preload to make possible that can be
  520. used as inspiration and guidance
  521. https://git.lekensteyn.nl/peter/wireshark-notes/tree/src/sslkeylog.c
  522. 13.11 Support intermediate & root pinning for PINNEDPUBLICKEY
  523. CURLOPT_PINNEDPUBLICKEY does not consider the hashes of intermediate & root
  524. certificates when comparing the pinned keys. Therefore it is not compatible
  525. with "HTTP Public Key Pinning" as there also intermediate and root certificates
  526. can be pinned. This is very useful as it prevents webadmins from "locking
  527. themself out of their servers".
  528. Adding this feature would make curls pinning 100% compatible to HPKP and allow
  529. more flexible pinning.
  530. 13.12 Support HSTS
  531. "HTTP Strict Transport Security" is TOFU (trust on first use), time-based
  532. features indicated by a HTTP header send by the webserver. It is widely used
  533. in browsers and it's purpose is to prevent insecure HTTP connections after
  534. a previous HTTPS connection. It protects against SSLStripping attacks.
  535. Doc: https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_strict_transport_security
  536. RFC 6797: https://tools.ietf.org/html/rfc6797
  537. 13.13 Support HPKP
  538. "HTTP Public Key Pinning" is TOFU (trust on first use), time-based
  539. features indicated by a HTTP header send by the webserver. It's purpose is
  540. to prevent Man-in-the-middle attacks by trusted CAs by allowing webadmins
  541. to specify which CAs/certificates/public keys to trust when connection to
  542. their websites.
  543. It can be build based on PINNEDPUBLICKEY.
  544. Wikipedia: https://en.wikipedia.org/wiki/HTTP_Public_Key_Pinning
  545. OWASP: https://www.owasp.org/index.php/Certificate_and_Public_Key_Pinning
  546. Doc: https://developer.mozilla.org/de/docs/Web/Security/Public_Key_Pinning
  547. RFC: https://tools.ietf.org/html/draft-ietf-websec-key-pinning-21
  548. 14. GnuTLS
  549. 14.1 SSL engine stuff
  550. Is this even possible?
  551. 14.2 check connection
  552. Add a way to check if the connection seems to be alive, to correspond to the
  553. SSL_peak() way we use with OpenSSL.
  554. 15. WinSSL/SChannel
  555. 15.1 Add support for client certificate authentication
  556. WinSSL/SChannel currently makes use of the OS-level system and user
  557. certificate and private key stores. This does not allow the application
  558. or the user to supply a custom client certificate using curl or libcurl.
  559. Therefore support for the existing -E/--cert and --key options should be
  560. implemented by supplying a custom certificate to the SChannel APIs, see:
  561. - Getting a Certificate for Schannel
  562. https://msdn.microsoft.com/en-us/library/windows/desktop/aa375447.aspx
  563. 15.2 Add support for custom server certificate validation
  564. WinSSL/SChannel currently makes use of the OS-level system and user
  565. certificate trust store. This does not allow the application or user to
  566. customize the server certificate validation process using curl or libcurl.
  567. Therefore support for the existing --cacert or --capath options should be
  568. implemented by supplying a custom certificate to the SChannel APIs, see:
  569. - Getting a Certificate for Schannel
  570. https://msdn.microsoft.com/en-us/library/windows/desktop/aa375447.aspx
  571. 15.3 Add support for the --ciphers option
  572. The cipher suites used by WinSSL/SChannel are configured on an OS-level
  573. instead of an application-level. This does not allow the application or
  574. the user to customize the configured cipher suites using curl or libcurl.
  575. Therefore support for the existing --ciphers option should be implemented
  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. 16. SASL
  580. 16.1 Other authentication mechanisms
  581. Add support for other authentication mechanisms such as OLP,
  582. GSS-SPNEGO and others.
  583. 16.2 Add QOP support to GSSAPI authentication
  584. Currently the GSSAPI authentication only supports the default QOP of auth
  585. (Authentication), whilst Kerberos V5 supports both auth-int (Authentication
  586. with integrity protection) and auth-conf (Authentication with integrity and
  587. privacy protection).
  588. 16.3 Support binary messages (i.e.: non-base64)
  589. Mandatory to support LDAP SASL authentication.
  590. 17. SSH protocols
  591. 17.1 Multiplexing
  592. SSH is a perfectly fine multiplexed protocols which would allow libcurl to do
  593. multiple parallel transfers from the same host using the same connection,
  594. much in the same spirit as HTTP/2 does. libcurl however does not take
  595. advantage of that ability but will instead always create a new connection for
  596. new transfers even if an existing connection already exists to the host.
  597. To fix this, libcurl would have to detect an existing connection and "attach"
  598. the new transfer to the existing one.
  599. 17.2 SFTP performance
  600. libcurl's SFTP transfer performance is sub par and can be improved, mostly by
  601. the approach mentioned in "1.6 Modified buffer size approach".
  602. 17.3 Support better than MD5 hostkey hash
  603. libcurl offers the CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 option for verifying the
  604. server's key. MD5 is generally being deprecated so we should implement
  605. support for stronger hashing algorithms. libssh2 itself is what provides this
  606. underlying functionality and it supports at least SHA-1 as an alternative.
  607. SHA-1 is also being deprecated these days so we should consider workign with
  608. libssh2 to instead offer support for SHA-256 or similar.
  609. 17.4 Support CURLOPT_PREQUOTE
  610. The two other QUOTE options are supported for SFTP, but this was left out for
  611. unknown reasons!
  612. 18. Command line tool
  613. 18.1 sync
  614. "curl --sync http://example.com/feed[1-100].rss" or
  615. "curl --sync http://example.net/{index,calendar,history}.html"
  616. Downloads a range or set of URLs using the remote name, but only if the
  617. remote file is newer than the local file. A Last-Modified HTTP date header
  618. should also be used to set the mod date on the downloaded file.
  619. 18.2 glob posts
  620. Globbing support for -d and -F, as in 'curl -d "name=foo[0-9]" URL'.
  621. This is easily scripted though.
  622. 18.3 prevent file overwriting
  623. Add an option that prevents curl from overwriting existing local files. When
  624. used, and there already is an existing file with the target file name
  625. (either -O or -o), a number should be appended (and increased if already
  626. existing). So that index.html becomes first index.html.1 and then
  627. index.html.2 etc.
  628. 18.4 simultaneous parallel transfers
  629. The client could be told to use maximum N simultaneous parallel transfers and
  630. then just make sure that happens. It should of course not make more than one
  631. connection to the same remote host. This would require the client to use the
  632. multi interface. https://curl.haxx.se/bug/feature.cgi?id=1558595
  633. Using the multi interface would also allow properly using parallel transfers
  634. with HTTP/2 and supporting HTTP/2 server push from the command line.
  635. 18.5 provide formpost headers
  636. Extending the capabilities of the multipart formposting. How about leaving
  637. the ';type=foo' syntax as it is and adding an extra tag (headers) which
  638. works like this: curl -F "coolfiles=@fil1.txt;headers=@fil1.hdr" where
  639. fil1.hdr contains extra headers like
  640. Content-Type: text/plain; charset=KOI8-R"
  641. Content-Transfer-Encoding: base64
  642. X-User-Comment: Please don't use browser specific HTML code
  643. which should overwrite the program reasonable defaults (plain/text,
  644. 8bit...)
  645. 18.6 warning when setting an option
  646. Display a warning when libcurl returns an error when setting an option.
  647. This can be useful to tell when support for a particular feature hasn't been
  648. compiled into the library.
  649. 18.8 offer color-coded HTTP header output
  650. By offering different color output on the header name and the header
  651. contents, they could be made more readable and thus help users working on
  652. HTTP services.
  653. 18.9 Choose the name of file in braces for complex URLs
  654. When using braces to download a list of URLs and you use complicated names
  655. in the list of alternatives, it could be handy to allow curl to use other
  656. names when saving.
  657. Consider a way to offer that. Possibly like
  658. {partURL1:name1,partURL2:name2,partURL3:name3} where the name following the
  659. colon is the output name.
  660. See https://github.com/curl/curl/issues/221
  661. 18.10 improve how curl works in a windows console window
  662. If you pull the scrollbar when transferring with curl in a Windows console
  663. window, the transfer is interrupted and can get disconnected. This can
  664. probably be improved. See https://github.com/curl/curl/issues/322
  665. 18.11 -w output to stderr
  666. -w is quite useful, but not to those of us who use curl without -o or -O
  667. (such as for scripting through a higher level language). It would be nice to
  668. have an option that is exactly like -w but sends it to stderr
  669. instead. Proposed name: --write-stderr. See
  670. https://github.com/curl/curl/issues/613
  671. 18.12 keep running, read instructions from pipe/socket
  672. Provide an option that makes curl not exit after the last URL (or even work
  673. without a given URL), and then make it read instructions passed on a pipe or
  674. over a socket to make further instructions so that a second subsequent curl
  675. invoke can talk to the still running instance and ask for transfers to get
  676. done, and thus maintain its connection pool, DNS cache and more.
  677. 18.13 support metalink in http headers
  678. Curl has support for downloading a metalink xml file, processing it, and then
  679. downloading the target of the metalink. This is done via the --metalink option.
  680. It would be nice if metalink also supported downloading via metalink
  681. information that is stored in HTTP headers (RFC 6249). Theoretically this could
  682. also be supported with the --metalink option.
  683. See https://tools.ietf.org/html/rfc6249
  684. See also https://lists.gnu.org/archive/html/bug-wget/2015-06/msg00034.html for
  685. an implematation of this in wget.
  686. 18.14 --fail without --location should treat 3xx as a failure
  687. To allow a command line like this to detect a redirect and consider it a
  688. failure:
  689. curl -v --fail -O https://example.com/curl-7.48.0.tar.gz
  690. ... --fail must treat 3xx responses as failures too. The least problematic
  691. way to implement this is probably to add that new logic in the command line
  692. tool only and not in the underlying CURLOPT_FAILONERROR logic.
  693. 18.15 --retry should resume
  694. When --retry is used and curl actually retries transfer, it should use the
  695. already transferred data and do a resumed transfer for the rest (when
  696. possible) so that it doesn't have to transfer the same data again that was
  697. already transferred before the retry.
  698. See https://github.com/curl/curl/issues/1084
  699. 18.16 send only part of --data
  700. When the user only wants to send a small piece of the data provided with
  701. --data or --data-binary, like when that data is a huge file, consider a way
  702. to specify that curl should only send a piece of that. One suggested syntax
  703. would be: "--data-binary @largefile.zip!1073741823-2147483647".
  704. See https://github.com/curl/curl/issues/1200
  705. 18.17 consider file name from the redirected URL with -O ?
  706. When a user gives a URL and uses -O, and curl follows a redirect to a new
  707. URL, the file name is not extracted and used from the newly redirected-to URL
  708. even if the new URL may have a much more sensible file name.
  709. This is clearly documented and helps for security since there's no surprise
  710. to users which file name that might get overwritten. But maybe a new option
  711. could allow for this or maybe -J should imply such a treatment as well as -J
  712. already allows for the server to decide what file name to use so it already
  713. provides the "may overwrite any file" risk.
  714. This is extra tricky if the original URL has no file name part at all since
  715. then the current code path will error out with an error message, and we can't
  716. *know* already at that point if curl will be redirected to a URL that has a
  717. file name...
  718. See https://github.com/curl/curl/issues/1241
  719. 19. Build
  720. 19.1 roffit
  721. Consider extending 'roffit' to produce decent ASCII output, and use that
  722. instead of (g)nroff when building src/tool_hugehelp.c
  723. 19.2 Enable PIE and RELRO by default
  724. Especially when having programs that execute curl via the command line, PIE
  725. renders the exploitation of memory corruption vulnerabilities a lot more
  726. difficult. This can be attributed to the additional information leaks being
  727. required to conduct a successful attack. RELRO, on the other hand, masks
  728. different binary sections like the GOT as read-only and thus kills a handful
  729. of techniques that come in handy when attackers are able to arbitrarily
  730. overwrite memory. A few tests showed that enabling these features had close
  731. to no impact, neither on the performance nor on the general functionality of
  732. curl.
  733. 20. Test suite
  734. 20.1 SSL tunnel
  735. Make our own version of stunnel for simple port forwarding to enable HTTPS
  736. and FTP-SSL tests without the stunnel dependency, and it could allow us to
  737. provide test tools built with either OpenSSL or GnuTLS
  738. 20.2 nicer lacking perl message
  739. If perl wasn't found by the configure script, don't attempt to run the tests
  740. but explain something nice why it doesn't.
  741. 20.3 more protocols supported
  742. Extend the test suite to include more protocols. The telnet could just do FTP
  743. or http operations (for which we have test servers).
  744. 20.4 more platforms supported
  745. Make the test suite work on more platforms. OpenBSD and Mac OS. Remove
  746. fork()s and it should become even more portable.
  747. 20.5 Add support for concurrent connections
  748. Tests 836, 882 and 938 were designed to verify that separate connections aren't
  749. used when using different login credentials in protocols that shouldn't re-use
  750. a connection under such circumstances.
  751. Unfortunately, ftpserver.pl doesn't appear to support multiple concurrent
  752. connections. The read while() loop seems to loop until it receives a disconnect
  753. from the client, where it then enters the waiting for connections loop. When
  754. the client opens a second connection to the server, the first connection hasn't
  755. been dropped (unless it has been forced - which we shouldn't do in these tests)
  756. and thus the wait for connections loop is never entered to receive the second
  757. connection.
  758. 20.6 Use the RFC6265 test suite
  759. A test suite made for HTTP cookies (RFC 6265) by Adam Barth is available at
  760. https://github.com/abarth/http-state/tree/master/tests
  761. It'd be really awesome if someone would write a script/setup that would run
  762. curl with that test suite and detect deviances. Ideally, that would even be
  763. incorporated into our regular test suite.
  764. 21. Next SONAME bump
  765. 21.1 http-style HEAD output for FTP
  766. #undef CURL_FTP_HTTPSTYLE_HEAD in lib/ftp.c to remove the HTTP-style headers
  767. from being output in NOBODY requests over FTP
  768. 21.2 combine error codes
  769. Combine some of the error codes to remove duplicates. The original
  770. numbering should not be changed, and the old identifiers would be
  771. macroed to the new ones in an CURL_NO_OLDIES section to help with
  772. backward compatibility.
  773. Candidates for removal and their replacements:
  774. CURLE_FILE_COULDNT_READ_FILE => CURLE_REMOTE_FILE_NOT_FOUND
  775. CURLE_FTP_COULDNT_RETR_FILE => CURLE_REMOTE_FILE_NOT_FOUND
  776. CURLE_FTP_COULDNT_USE_REST => CURLE_RANGE_ERROR
  777. CURLE_FUNCTION_NOT_FOUND => CURLE_FAILED_INIT
  778. CURLE_LDAP_INVALID_URL => CURLE_URL_MALFORMAT
  779. CURLE_TFTP_NOSUCHUSER => CURLE_TFTP_ILLEGAL
  780. CURLE_TFTP_NOTFOUND => CURLE_REMOTE_FILE_NOT_FOUND
  781. CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED
  782. 21.3 extend CURLOPT_SOCKOPTFUNCTION prototype
  783. The current prototype only provides 'purpose' that tells what the
  784. connection/socket is for, but not any protocol or similar. It makes it hard
  785. for applications to differentiate on TCP vs UDP and even HTTP vs FTP and
  786. similar.
  787. 22. Next major release
  788. 22.1 cleanup return codes
  789. curl_easy_cleanup() returns void, but curl_multi_cleanup() returns a
  790. CURLMcode. These should be changed to be the same.
  791. 22.2 remove obsolete defines
  792. remove obsolete defines from curl/curl.h
  793. 22.3 size_t
  794. make several functions use size_t instead of int in their APIs
  795. 22.4 remove several functions
  796. remove the following functions from the public API:
  797. curl_getenv
  798. curl_mprintf (and variations)
  799. curl_strequal
  800. curl_strnequal
  801. They will instead become curlx_ - alternatives. That makes the curl app
  802. still capable of using them, by building with them from source.
  803. These functions have no purpose anymore:
  804. curl_multi_socket
  805. curl_multi_socket_all
  806. 22.5 remove CURLOPT_FAILONERROR
  807. Remove support for CURLOPT_FAILONERROR, it has gotten too kludgy and weird
  808. internally. Let the app judge success or not for itself.
  809. 22.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
  810. Remove support for a global DNS cache. Anything global is silly, and we
  811. already offer the share interface for the same functionality but done
  812. "right".
  813. 22.7 remove progress meter from libcurl
  814. The internally provided progress meter output doesn't belong in the library.
  815. Basically no application wants it (apart from curl) but instead applications
  816. can and should do their own progress meters using the progress callback.
  817. The progress callback should then be bumped as well to get proper 64bit
  818. variable types passed to it instead of doubles so that big files work
  819. correctly.
  820. 22.8 remove 'curl_httppost' from public
  821. curl_formadd() was made to fill in a public struct, but the fact that the
  822. struct is public is never really used by application for their own advantage
  823. but instead often restricts how the form functions can or can't be modified.
  824. Changing them to return a private handle will benefit the implementation and
  825. allow us much greater freedoms while still maintaining a solid API and ABI.