TODO 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  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. All bugs documented in the KNOWN_BUGS document are subject for fixing!
  10. 1. libcurl
  11. 1.1 Zero-copy interface
  12. 1.2 More data sharing
  13. 1.3 struct lifreq
  14. 1.4 Get IP address
  15. 1.5 c-ares ipv6
  16. 1.6 configure-based info in public headers
  17. 2. libcurl - multi interface
  18. 2.1 More non-blocking
  19. 2.2 Pause transfers
  20. 2.3 Remove easy interface internally
  21. 2.4 Avoid having to remove/readd handles
  22. 3. Documentation
  23. 3.1 More and better
  24. 4. FTP
  25. 4.1 PRET
  26. 4.2 Alter passive/active on failure and retry
  27. 4.3 Earlier bad letter detection
  28. 4.4 REST for large files
  29. 4.5 FTP proxy support
  30. 4.6 PORT port range
  31. 4.7 ASCII support
  32. 5. HTTP
  33. 5.1 Other HTTP versions with CONNECT
  34. 5.2 Better persistency for HTTP 1.0
  35. 5.3 support FF3 sqlite cookie files
  36. 6. TELNET
  37. 6.1 ditch stdin
  38. 6.2 ditch telnet-specific select
  39. 6.3 feature negotiation debug data
  40. 6.4 send data in chunks
  41. 7. SSL
  42. 7.1 Disable specific versions
  43. 7.2 Provide mytex locking API
  44. 7.3 dumpcert
  45. 7.4 Evaluate SSL patches
  46. 7.5 Cache OpenSSL contexts
  47. 7.6 Export session ids
  48. 7.7 Provide callback for cert verification
  49. 7.8 Support other SSL libraries
  50. 7.9 Support SRP on the TLS layer
  51. 7.10 improve configure --with-ssl
  52. 8. GnuTLS
  53. 8.1 Make NTLM work without OpenSSL functions
  54. 8.2 SSL engine stuff
  55. 8.3 SRP
  56. 8.4 non-blocking
  57. 8.5 check connection
  58. 9. Other protocols
  59. 9.1 ditch ldap-specific select
  60. 10. New protocols
  61. 10.1 RTSP
  62. 10.2 RSYNC
  63. 10.3 RTMP
  64. 11. Client
  65. 11.1 Content-Disposition
  66. 11.2 sync
  67. 11.3 glob posts
  68. 11.4 prevent file overwriting
  69. 11.5 ftp wildcard download
  70. 11.6 simultaneous parallel transfers
  71. 11.7 provide formpost headers
  72. 11.8 url-specific options
  73. 11.9 metalink support
  74. 11.10 warning when setting an option
  75. 12. Build
  76. 12.1 roffit
  77. 13. Test suite
  78. 13.1 SSL tunnel
  79. 13.2 nicer lacking perl message
  80. 13.3 more protocols supported
  81. 13.4 more platforms supported
  82. 14. Next SONAME bump
  83. 14.1 http-style HEAD output for ftp
  84. 14.2 combine error codes
  85. 14.3 extend CURLOPT_SOCKOPTFUNCTION prototype
  86. 15. Next major release
  87. 15.1 cleanup return codes
  88. 15.2 remove obsolete defines
  89. 15.3 size_t
  90. 15.4 remove several functions
  91. 15.5 remove CURLOPT_FAILONERROR
  92. 15.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
  93. ==============================================================================
  94. 1. libcurl
  95. 1.1 Zero-copy interface
  96. Introduce another callback interface for upload/download that makes one less
  97. copy of data and thus a faster operation.
  98. [http://curl.haxx.se/dev/no_copy_callbacks.txt]
  99. 1.2 More data sharing
  100. curl_share_* functions already exist and work, and they can be extended to
  101. share more. For example, enable sharing of the ares channel and the
  102. connection cache.
  103. 1.3 struct lifreq
  104. Use 'struct lifreq' and SIOCGLIFADDR instead of 'struct ifreq' and
  105. SIOCGIFADDR on newer Solaris versions as they claim the latter is obsolete.
  106. To support ipv6 interface addresses for network interfaces properly.
  107. 1.4 Get IP address
  108. Add the following to curl_easy_getinfo(): GET_HTTP_IP, GET_FTP_IP and
  109. GET_FTP_DATA_IP. Return a string with the used IP.
  110. 1.5 c-ares ipv6
  111. Make libcurl built with c-ares use c-ares' IPv6 abilities. They weren't
  112. present when we first added c-ares support but they have been added since!
  113. When this is done and works, we can actually start considering making c-ares
  114. powered libcurl the default build (which of course would require that we'd
  115. bundle the c-ares source code in the libcurl source code releases).
  116. 1.6 configure-based info in public headers
  117. Make the public headers include the proper system includes based on what was
  118. present at the time when configure was run. Currently, the sys/select.h
  119. header is for example included by curl/multi.h only on specific platforms we
  120. know MUST have it. This is error-prone. We therefore want the header files to
  121. adapt to configure results. Those results must be stored in a new header and
  122. they must use a curl name space, i.e not be HAVE_* prefix (as that would risk
  123. collide with other apps that use libcurl and that runs configure).
  124. Work on this has been started but hasn't been finished, and the initial patch
  125. and some details are found here:
  126. http://curl.haxx.se/mail/lib-2006-12/0084.html
  127. The remaining problems to solve involve the platforms that can't run
  128. configure.
  129. 2. libcurl - multi interface
  130. 2.1 More non-blocking
  131. Make sure we don't ever loop because of non-blocking sockets return
  132. EWOULDBLOCK or similar. The GnuTLS connection etc.
  133. 2.2 Pause transfers
  134. Make transfers treated more carefully. We need a way to tell libcurl we have
  135. data to write, as the current system expects us to upload data each time the
  136. socket is writable and there is no way to say that we want to upload data
  137. soon just not right now, without that aborting the upload. The opposite
  138. situation should be possible as well, that we tell libcurl we're ready to
  139. accept read data. Today libcurl feeds the data as soon as it is available for
  140. reading, no matter what.
  141. 2.3 Remove easy interface internally
  142. Make curl_easy_perform() a wrapper-function that simply creates a multi
  143. handle, adds the easy handle to it, runs curl_multi_perform() until the
  144. transfer is done, then detach the easy handle, destroy the multi handle and
  145. return the easy handle's return code. This will thus make everything
  146. internally use and assume the multi interface. The select()-loop should use
  147. curl_multi_socket().
  148. 2.4 Avoid having to remove/readd handles
  149. curl_multi_handle_control() - this can control the easy handle (while) added
  150. to a multi handle in various ways:
  151. o RESTART, unconditionally restart this easy handle's transfer from the
  152. start, re-init the state
  153. o RESTART_COMPLETED, restart this easy handle's transfer but only if the
  154. existing transfer has already completed and it is in a "finished state".
  155. o STOP, just stop this transfer and consider it completed
  156. o PAUSE?
  157. o RESUME?
  158. 3. Documentation
  159. 3.1 More and better
  160. Exactly
  161. 4. FTP
  162. 4.1 PRET
  163. PRET is a command that primarily "drftpd" supports, which could be useful
  164. when using libcurl against such a server. It is a non-standard and a rather
  165. oddly designed command, but...
  166. http://curl.haxx.se/bug/feature.cgi?id=1729967
  167. 4.2 Alter passive/active on failure and retry
  168. When trying to connect passively to a server which only supports active
  169. connections, libcurl returns CURLE_FTP_WEIRD_PASV_REPLY and closes the
  170. connection. There could be a way to fallback to an active connection (and
  171. vice versa). http://curl.haxx.se/bug/feature.cgi?id=1754793
  172. 4.3 Earlier bad letter detection
  173. Make the detection of (bad) %0d and %0a codes in FTP url parts earlier in the
  174. process to avoid doing a resolve and connect in vain.
  175. 4.4 REST for large files
  176. REST fix for servers not behaving well on >2GB requests. This should fail if
  177. the server doesn't set the pointer to the requested index. The tricky
  178. (impossible?) part is to figure out if the server did the right thing or not.
  179. 4.5 FTP proxy support
  180. Support the most common FTP proxies, Philip Newton provided a list allegedly
  181. from ncftp. This is not a subject without debate, and is probably not really
  182. suitable for libcurl. http://curl.haxx.se/mail/archive-2003-04/0126.html
  183. 4.6 PORT port range
  184. Make CURLOPT_FTPPORT support an additional port number on the IP/if/name,
  185. like "blabla:[port]" or possibly even "blabla:[portfirst]-[portsecond]".
  186. http://curl.haxx.se/bug/feature.cgi?id=1505166
  187. 4.7 ASCII support
  188. FTP ASCII transfers do not follow RFC959. They don't convert the data
  189. accordingly.
  190. 5. HTTP
  191. 5.1 Other HTTP versions with CONNECT
  192. When doing CONNECT to a HTTP proxy, libcurl always uses HTTP/1.0. This has
  193. never been reported as causing trouble to anyone, but should be considered to
  194. use the HTTP version the user has chosen.
  195. 5.2 Better persistency for HTTP 1.0
  196. "Better" support for persistent connections over HTTP 1.0
  197. http://curl.haxx.se/bug/feature.cgi?id=1089001
  198. 5.3 support FF3 sqlite cookie files
  199. Firefox 3 is changing from its former format to a a sqlite database instead.
  200. We should consider how (lib)curl can/should support this.
  201. http://curl.haxx.se/bug/feature.cgi?id=1871388
  202. 6. TELNET
  203. 6.1 ditch stdin
  204. Reading input (to send to the remote server) on stdin is a crappy solution for
  205. library purposes. We need to invent a good way for the application to be able
  206. to provide the data to send.
  207. 6.2 ditch telnet-specific select
  208. Move the telnet support's network select() loop go away and merge the code
  209. into the main transfer loop. Until this is done, the multi interface won't
  210. work for telnet.
  211. 6.3 feature negotiation debug data
  212. Add telnet feature negotiation data to the debug callback as header data.
  213. 6.4 send data in chunks
  214. Currently, telnet sends data one byte at a time. This is fine for interactive
  215. use, but inefficient for any other. Sent data should be sent in larger
  216. chunks.
  217. 7. SSL
  218. 7.1 Disable specific versions
  219. Provide an option that allows for disabling specific SSL versions, such as
  220. SSLv2 http://curl.haxx.se/bug/feature.cgi?id=1767276
  221. 7.2 Provide mytex locking API
  222. Provide a libcurl API for setting mutex callbacks in the underlying SSL
  223. library, so that the same application code can use mutex-locking
  224. independently of OpenSSL or GnutTLS being used.
  225. 7.3 dumpcert
  226. Anton Fedorov's "dumpcert" patch:
  227. http://curl.haxx.se/mail/lib-2004-03/0088.html
  228. 7.4 Evaluate SSL patches
  229. Evaluate/apply Gertjan van Wingerde's SSL patches:
  230. http://curl.haxx.se/mail/lib-2004-03/0087.html
  231. 7.5 Cache OpenSSL contexts
  232. "Look at SSL cafile - quick traces look to me like these are done on every
  233. request as well, when they should only be necessary once per ssl context (or
  234. once per handle)". The major improvement we can rather easily do is to make
  235. sure we don't create and kill a new SSL "context" for every request, but
  236. instead make one for every connection and re-use that SSL context in the same
  237. style connections are re-used. It will make us use slightly more memory but
  238. it will libcurl do less creations and deletions of SSL contexts.
  239. 7.6 Export session ids
  240. Add an interface to libcurl that enables "session IDs" to get
  241. exported/imported. Cris Bailiff said: "OpenSSL has functions which can
  242. serialise the current SSL state to a buffer of your choice, and recover/reset
  243. the state from such a buffer at a later date - this is used by mod_ssl for
  244. apache to implement and SSL session ID cache".
  245. 7.7 Provide callback for cert verification
  246. OpenSSL supports a callback for customised verification of the peer
  247. certificate, but this doesn't seem to be exposed in the libcurl APIs. Could
  248. it be? There's so much that could be done if it were!
  249. 7.8 Support other SSL libraries
  250. Make curl's SSL layer capable of using other free SSL libraries. Such as
  251. MatrixSSL (http://www.matrixssl.org/).
  252. 7.9 Support SRP on the TLS layer
  253. Peter Sylvester's patch for SRP on the TLS layer. Awaits OpenSSL support for
  254. this, no need to support this in libcurl before there's an OpenSSL release
  255. that does it.
  256. 7.10 improve configure --with-ssl
  257. make the configure --with-ssl option first check for OpenSSL, then GnuTLS,
  258. then NSS...
  259. 8. GnuTLS
  260. 8.1 Make NTLM work without OpenSSL functions
  261. Get NTLM working using the functions provided by libgcrypt, since GnuTLS
  262. already depends on that to function. Not strictly SSL/TLS related, but
  263. hey... Another option is to get available DES and MD4 source code from the
  264. cryptopp library. They are fine license-wise, but are C++.
  265. 8.2 SSL engine stuff
  266. Is this even possible?
  267. 8.3 SRP
  268. Work out a common method with Peter Sylvester's OpenSSL-patch for SRP on the
  269. TLS to provide name and password. GnuTLS already supports it...
  270. 8.4 non-blocking
  271. Fix the connection phase to be non-blocking when multi interface is used
  272. 8.5 check connection
  273. Add a way to check if the connection seems to be alive, to correspond to the
  274. SSL_peak() way we use with OpenSSL.
  275. 9. Other protocols
  276. 9.1 ditch ldap-specific select
  277. * Look over the implementation. The looping will have to "go away" from the
  278. lib/ldap.c source file and get moved to the main network code so that the
  279. multi interface and friends will work for LDAP as well.
  280. 9.2 stop TFTP blocking
  281. Stop TFTP from being blocking and doing its own read loop in tftp_do.
  282. 10. New protocols
  283. 10.1 RTSP
  284. RFC2326 (protocol - very HTTP-like, also contains URL description)
  285. 10.2 RSYNC
  286. There's no RFC for protocol nor URI/URL format. An implementation should
  287. most probably use an existing rsync library, such as librsync.
  288. 10.3 RTMP
  289. There exists a patch that claims to introduce this protocol:
  290. http://osdir.com/ml/gnu.gnash.devel2/2006-11/msg00278.html, further details
  291. in the feature-request: http://curl.haxx.se/bug/feature.cgi?id=1843469
  292. 11. Client
  293. 11.1 Content-Disposition
  294. Add option that is similar to -O but that takes the output file name from the
  295. Content-Disposition: header, and/or uses the local file name used in
  296. redirections for the cases the server bounces the request further to a
  297. different file (name): http://curl.haxx.se/bug/feature.cgi?id=1364676
  298. 11.2 sync
  299. "curl --sync http://example.com/feed[1-100].rss" or
  300. "curl --sync http://example.net/{index,calendar,history}.html"
  301. Downloads a range or set of URLs using the remote name, but only if the
  302. remote file is newer than the local file. A Last-Modified HTTP date header
  303. should also be used to set the mod date on the downloaded file.
  304. 11.3 glob posts
  305. Globbing support for -d and -F, as in 'curl -d "name=foo[0-9]" URL'.
  306. This is easily scripted though.
  307. 11.4 prevent file overwriting
  308. Add an option that prevents cURL from overwriting existing local files. When
  309. used, and there already is an existing file with the target file name
  310. (either -O or -o), a number should be appended (and increased if already
  311. existing). So that index.html becomes first index.html.1 and then
  312. index.html.2 etc.
  313. 11.5 ftp wildcard download
  314. "curl ftp://site.com/*.txt"
  315. 11.6 simultaneous parallel transfers
  316. The client could be told to use maximum N simultaneous parallel transfers and
  317. then just make sure that happens. It should of course not make more than one
  318. connection to the same remote host. This would require the client to use the
  319. multi interface. http://curl.haxx.se/bug/feature.cgi?id=1558595
  320. 11.7 provide formpost headers
  321. Extending the capabilities of the multipart formposting. How about leaving
  322. the ';type=foo' syntax as it is and adding an extra tag (headers) which
  323. works like this: curl -F "[email protected];[email protected]" where
  324. fil1.hdr contains extra headers like
  325. Content-Type: text/plain; charset=KOI8-R"
  326. Content-Transfer-Encoding: base64
  327. X-User-Comment: Please don't use browser specific HTML code
  328. which should overwrite the program reasonable defaults (plain/text,
  329. 8bit...)
  330. 11.8 url-specific options
  331. Provide a way to make options bound to a specific URL among several on the
  332. command line. Possibly by letting ':' separate options between URLs,
  333. similar to this:
  334. curl --data foo --url url.com : \
  335. --url url2.com : \
  336. --url url3.com --data foo3
  337. (More details: http://curl.haxx.se/mail/archive-2004-07/0133.html)
  338. The example would do a POST-GET-POST combination on a single command line.
  339. 11.9 metalink support
  340. Add metalink support to curl (http://www.metalinker.org/). This is most useful
  341. with simultaneous parallel transfers (11.6) but not necessary.
  342. 11.10 warning when setting an option
  343. Display a warning when libcurl returns an error when setting an option.
  344. This can be useful to tell when support for a particular feature hasn't been
  345. compiled into the library.
  346. 12. Build
  347. 12.1 roffit
  348. Consider extending 'roffit' to produce decent ASCII output, and use that
  349. instead of (g)nroff when building src/hugehelp.c
  350. 13. Test suite
  351. 13.1 SSL tunnel
  352. Make our own version of stunnel for simple port forwarding to enable HTTPS
  353. and FTP-SSL tests without the stunnel dependency, and it could allow us to
  354. provide test tools built with either OpenSSL or GnuTLS
  355. 13.2 nicer lacking perl message
  356. If perl wasn't found by the configure script, don't attempt to run the tests
  357. but explain something nice why it doesn't.
  358. 13.3 more protocols supported
  359. Extend the test suite to include more protocols. The telnet could just do ftp
  360. or http operations (for which we have test servers).
  361. 13.4 more platforms supported
  362. Make the test suite work on more platforms. OpenBSD and Mac OS. Remove
  363. fork()s and it should become even more portable.
  364. 14. Next SONAME bump
  365. 14.1 http-style HEAD output for ftp
  366. #undef CURL_FTP_HTTPSTYLE_HEAD in lib/ftp.c to remove the HTTP-style headers
  367. from being output in NOBODY requests over ftp
  368. 14.2 combine error codes
  369. Combine some of the error codes to remove duplicates. The original
  370. numbering should not be changed, and the old identifiers would be
  371. macroed to the new ones in an CURL_NO_OLDIES section to help with
  372. backward compatibility.
  373. Candidates for removal and their replacements:
  374. CURLE_FILE_COULDNT_READ_FILE => CURLE_REMOTE_FILE_NOT_FOUND
  375. CURLE_FTP_COULDNT_RETR_FILE => CURLE_REMOTE_FILE_NOT_FOUND
  376. CURLE_FTP_COULDNT_USE_REST => CURLE_RANGE_ERROR
  377. CURLE_FUNCTION_NOT_FOUND => CURLE_FAILED_INIT
  378. CURLE_LDAP_INVALID_URL => CURLE_URL_MALFORMAT
  379. CURLE_TFTP_NOSUCHUSER => CURLE_TFTP_ILLEGAL
  380. CURLE_TFTP_NOTFOUND => CURLE_REMOTE_FILE_NOT_FOUND
  381. CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED
  382. 14.3 extend CURLOPT_SOCKOPTFUNCTION prototype
  383. The current prototype only provides 'purpose' that tells what the
  384. connection/socket is for, but not any protocol or similar. It makes it hard
  385. for applications to differentiate on TCP vs UDP and even HTTP vs FTP and
  386. similar.
  387. 15. Next major release
  388. 15.1 cleanup return codes
  389. curl_easy_cleanup() returns void, but curl_multi_cleanup() returns a
  390. CURLMcode. These should be changed to be the same.
  391. 15.2 remove obsolete defines
  392. remove obsolete defines from curl/curl.h
  393. 15.3 size_t
  394. make several functions use size_t instead of int in their APIs
  395. 15.4 remove several functions
  396. remove the following functions from the public API:
  397. curl_getenv
  398. curl_mprintf (and variations)
  399. curl_strequal
  400. curl_strnequal
  401. They will instead become curlx_ - alternatives. That makes the curl app
  402. still capable of building with them from source.
  403. 15.5 remove CURLOPT_FAILONERROR
  404. Remove support for CURLOPT_FAILONERROR, it has gotten too kludgy and weird
  405. internally. Let the app judge success or not for itself.
  406. 15.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
  407. Remove support for a global DNS cache. Anything global is silly, and we
  408. already offer the share interface for the same functionality but done
  409. "right".