5 \___|\___/|_| \_\_____|
7 Things that could be nice to do in the future
9 Things to do in project cURL. Please tell us what you think, contribute and
10 send us patches that improve things!
12 All bugs documented in the KNOWN_BUGS document are subject for fixing!
15 1.1 Zero-copy interface
20 1.6 configure-based info in public headers
22 2. libcurl - multi interface
25 2.3 Remove easy interface internally
26 2.4 Avoid having to remove/readd handles
33 4.2 Alter passive/active on failure and retry
34 4.3 Earlier bad letter detection
35 4.4 REST for large files
41 5.1 Other HTTP versions with CONNECT
42 5.2 Better persistency for HTTP 1.0
43 5.3 support FF3 sqlite cookie files
47 6.2 ditch telnet-specific select
48 6.3 feature negotiation debug data
49 6.4 send data in chunks
52 7.1 Disable specific versions
53 7.2 Provide mytex locking API
55 7.4 Evaluate SSL patches
56 7.5 Cache OpenSSL contexts
57 7.6 Export session ids
58 7.7 Provide callback for cert verification
59 7.8 Support other SSL libraries
60 7.9 Support SRP on the TLS layer
61 7.10 improve configure --with-ssl
64 8.1 Make NTLM work without OpenSSL functions
71 9.1 ditch ldap-specific select
79 11.1 Content-Disposition
82 11.4 prevent file overwriting
83 11.5 ftp wildcard download
84 11.6 simultaneous parallel transfers
85 11.7 provide formpost headers
86 11.8 url-specific options
88 11.10 warning when setting an option
95 13.2 nicer lacking perl message
96 13.3 more protocols supported
97 13.4 more platforms supported
100 14.1 http-style HEAD output for ftp
101 14.2 combine error codes
102 14.3 extend CURLOPT_SOCKOPTFUNCTION prototype
104 15. Next major release
105 15.1 cleanup return codes
106 15.2 remove obsolete defines
108 15.4 remove several functions
109 15.5 remove CURLOPT_FAILONERROR
110 15.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
112 ==============================================================================
116 1.1 Zero-copy interface
118 Introduce another callback interface for upload/download that makes one less
119 copy of data and thus a faster operation.
120 [http://curl.haxx.se/dev/no_copy_callbacks.txt]
122 1.2 More data sharing
124 curl_share_* functions already exist and work, and they can be extended to
125 share more. For example, enable sharing of the ares channel and the
130 Use 'struct lifreq' and SIOCGLIFADDR instead of 'struct ifreq' and
131 SIOCGIFADDR on newer Solaris versions as they claim the latter is obsolete.
132 To support ipv6 interface addresses for network interfaces properly.
136 Add the following to curl_easy_getinfo(): GET_HTTP_IP, GET_FTP_IP and
137 GET_FTP_DATA_IP. Return a string with the used IP.
141 Make libcurl built with c-ares use c-ares' IPv6 abilities. They weren't
142 present when we first added c-ares support but they have been added since!
143 When this is done and works, we can actually start considering making c-ares
144 powered libcurl the default build (which of course would require that we'd
145 bundle the c-ares source code in the libcurl source code releases).
147 1.6 configure-based info in public headers
149 Make the public headers include the proper system includes based on what was
150 present at the time when configure was run. Currently, the sys/select.h
151 header is for example included by curl/multi.h only on specific platforms we
152 know MUST have it. This is error-prone. We therefore want the header files to
153 adapt to configure results. Those results must be stored in a new header and
154 they must use a curl name space, i.e not be HAVE_* prefix (as that would risk
155 collide with other apps that use libcurl and that runs configure).
157 Work on this has been started but hasn't been finished, and the initial patch
158 and some details are found here:
159 http://curl.haxx.se/mail/lib-2006-12/0084.html
161 The remaining problems to solve involve the platforms that can't run
164 2. libcurl - multi interface
166 2.1 More non-blocking
168 Make sure we don't ever loop because of non-blocking sockets return
169 EWOULDBLOCK or similar. The GnuTLS connection etc.
173 Make transfers treated more carefully. We need a way to tell libcurl we have
174 data to write, as the current system expects us to upload data each time the
175 socket is writable and there is no way to say that we want to upload data
176 soon just not right now, without that aborting the upload. The opposite
177 situation should be possible as well, that we tell libcurl we're ready to
178 accept read data. Today libcurl feeds the data as soon as it is available for
179 reading, no matter what.
181 2.3 Remove easy interface internally
183 Make curl_easy_perform() a wrapper-function that simply creates a multi
184 handle, adds the easy handle to it, runs curl_multi_perform() until the
185 transfer is done, then detach the easy handle, destroy the multi handle and
186 return the easy handle's return code. This will thus make everything
187 internally use and assume the multi interface. The select()-loop should use
190 2.4 Avoid having to remove/readd handles
192 curl_multi_handle_control() - this can control the easy handle (while) added
193 to a multi handle in various ways:
195 o RESTART, unconditionally restart this easy handle's transfer from the
196 start, re-init the state
198 o RESTART_COMPLETED, restart this easy handle's transfer but only if the
199 existing transfer has already completed and it is in a "finished state".
201 o STOP, just stop this transfer and consider it completed
217 PRET is a command that primarily "drftpd" supports, which could be useful
218 when using libcurl against such a server. It is a non-standard and a rather
219 oddly designed command, but...
220 http://curl.haxx.se/bug/feature.cgi?id=1729967
222 4.2 Alter passive/active on failure and retry
224 When trying to connect passively to a server which only supports active
225 connections, libcurl returns CURLE_FTP_WEIRD_PASV_REPLY and closes the
226 connection. There could be a way to fallback to an active connection (and
227 vice versa). http://curl.haxx.se/bug/feature.cgi?id=1754793
229 4.3 Earlier bad letter detection
231 Make the detection of (bad) %0d and %0a codes in FTP url parts earlier in the
232 process to avoid doing a resolve and connect in vain.
234 4.4 REST for large files
236 REST fix for servers not behaving well on >2GB requests. This should fail if
237 the server doesn't set the pointer to the requested index. The tricky
238 (impossible?) part is to figure out if the server did the right thing or not.
240 4.5 FTP proxy support
242 Support the most common FTP proxies, Philip Newton provided a list allegedly
243 from ncftp. This is not a subject without debate, and is probably not really
244 suitable for libcurl. http://curl.haxx.se/mail/archive-2003-04/0126.html
248 Make CURLOPT_FTPPORT support an additional port number on the IP/if/name,
249 like "blabla:[port]" or possibly even "blabla:[portfirst]-[portsecond]".
250 http://curl.haxx.se/bug/feature.cgi?id=1505166
254 FTP ASCII transfers do not follow RFC959. They don't convert the data
259 5.1 Other HTTP versions with CONNECT
261 When doing CONNECT to a HTTP proxy, libcurl always uses HTTP/1.0. This has
262 never been reported as causing trouble to anyone, but should be considered to
263 use the HTTP version the user has chosen.
265 5.2 Better persistency for HTTP 1.0
267 "Better" support for persistent connections over HTTP 1.0
268 http://curl.haxx.se/bug/feature.cgi?id=1089001
270 5.3 support FF3 sqlite cookie files
272 Firefox 3 is changing from its former format to a a sqlite database instead.
273 We should consider how (lib)curl can/should support this.
274 http://curl.haxx.se/bug/feature.cgi?id=1871388
280 Reading input (to send to the remote server) on stdin is a crappy solution for
281 library purposes. We need to invent a good way for the application to be able
282 to provide the data to send.
284 6.2 ditch telnet-specific select
286 Move the telnet support's network select() loop go away and merge the code
287 into the main transfer loop. Until this is done, the multi interface won't
290 6.3 feature negotiation debug data
292 Add telnet feature negotiation data to the debug callback as header data.
294 6.4 send data in chunks
296 Currently, telnet sends data one byte at a time. This is fine for interactive
297 use, but inefficient for any other. Sent data should be sent in larger
302 7.1 Disable specific versions
304 Provide an option that allows for disabling specific SSL versions, such as
305 SSLv2 http://curl.haxx.se/bug/feature.cgi?id=1767276
307 7.2 Provide mytex locking API
309 Provide a libcurl API for setting mutex callbacks in the underlying SSL
310 library, so that the same application code can use mutex-locking
311 independently of OpenSSL or GnutTLS being used.
315 Anton Fedorov's "dumpcert" patch:
316 http://curl.haxx.se/mail/lib-2004-03/0088.html
318 7.4 Evaluate SSL patches
320 Evaluate/apply Gertjan van Wingerde's SSL patches:
321 http://curl.haxx.se/mail/lib-2004-03/0087.html
323 7.5 Cache OpenSSL contexts
325 "Look at SSL cafile - quick traces look to me like these are done on every
326 request as well, when they should only be necessary once per ssl context (or
327 once per handle)". The major improvement we can rather easily do is to make
328 sure we don't create and kill a new SSL "context" for every request, but
329 instead make one for every connection and re-use that SSL context in the same
330 style connections are re-used. It will make us use slightly more memory but
331 it will libcurl do less creations and deletions of SSL contexts.
333 7.6 Export session ids
335 Add an interface to libcurl that enables "session IDs" to get
336 exported/imported. Cris Bailiff said: "OpenSSL has functions which can
337 serialise the current SSL state to a buffer of your choice, and recover/reset
338 the state from such a buffer at a later date - this is used by mod_ssl for
339 apache to implement and SSL session ID cache".
341 7.7 Provide callback for cert verification
343 OpenSSL supports a callback for customised verification of the peer
344 certificate, but this doesn't seem to be exposed in the libcurl APIs. Could
345 it be? There's so much that could be done if it were!
347 7.8 Support other SSL libraries
349 Make curl's SSL layer capable of using other free SSL libraries. Such as
350 MatrixSSL (http://www.matrixssl.org/).
352 7.9 Support SRP on the TLS layer
354 Peter Sylvester's patch for SRP on the TLS layer. Awaits OpenSSL support for
355 this, no need to support this in libcurl before there's an OpenSSL release
358 7.10 improve configure --with-ssl
360 make the configure --with-ssl option first check for OpenSSL, then GnuTLS,
365 8.1 Make NTLM work without OpenSSL functions
367 Get NTLM working using the functions provided by libgcrypt, since GnuTLS
368 already depends on that to function. Not strictly SSL/TLS related, but
369 hey... Another option is to get available DES and MD4 source code from the
370 cryptopp library. They are fine license-wise, but are C++.
374 Is this even possible?
378 Work out a common method with Peter Sylvester's OpenSSL-patch for SRP on the
379 TLS to provide name and password. GnuTLS already supports it...
383 Fix the connection phase to be non-blocking when multi interface is used
387 Add a way to check if the connection seems to be alive, to correspond to the
388 SSL_peak() way we use with OpenSSL.
392 9.1 ditch ldap-specific select
394 * Look over the implementation. The looping will have to "go away" from the
395 lib/ldap.c source file and get moved to the main network code so that the
396 multi interface and friends will work for LDAP as well.
398 9.2 stop TFTP blocking
400 Stop TFTP from being blocking and doing its own read loop in tftp_do.
406 RFC2326 (protocol - very HTTP-like, also contains URL description)
410 There's no RFC for protocol nor URI/URL format. An implementation should
411 most probably use an existing rsync library, such as librsync.
415 There exists a patch that claims to introduce this protocol:
416 http://osdir.com/ml/gnu.gnash.devel2/2006-11/msg00278.html, further details
417 in the feature-request: http://curl.haxx.se/bug/feature.cgi?id=1843469
421 11.1 Content-Disposition
423 Add option that is similar to -O but that takes the output file name from the
424 Content-Disposition: header, and/or uses the local file name used in
425 redirections for the cases the server bounces the request further to a
426 different file (name): http://curl.haxx.se/bug/feature.cgi?id=1364676
430 "curl --sync http://example.com/feed[1-100].rss" or
431 "curl --sync http://example.net/{index,calendar,history}.html"
433 Downloads a range or set of URLs using the remote name, but only if the
434 remote file is newer than the local file. A Last-Modified HTTP date header
435 should also be used to set the mod date on the downloaded file.
439 Globbing support for -d and -F, as in 'curl -d "name=foo[0-9]" URL'.
440 This is easily scripted though.
442 11.4 prevent file overwriting
444 Add an option that prevents cURL from overwriting existing local files. When
445 used, and there already is an existing file with the target file name
446 (either -O or -o), a number should be appended (and increased if already
447 existing). So that index.html becomes first index.html.1 and then
450 11.5 ftp wildcard download
452 "curl ftp://site.com/*.txt"
454 11.6 simultaneous parallel transfers
456 The client could be told to use maximum N simultaneous parallel transfers and
457 then just make sure that happens. It should of course not make more than one
458 connection to the same remote host. This would require the client to use the
459 multi interface. http://curl.haxx.se/bug/feature.cgi?id=1558595
461 11.7 provide formpost headers
463 Extending the capabilities of the multipart formposting. How about leaving
464 the ';type=foo' syntax as it is and adding an extra tag (headers) which
465 works like this: curl -F "coolfiles=@fil1.txt;headers=@fil1.hdr" where
466 fil1.hdr contains extra headers like
468 Content-Type: text/plain; charset=KOI8-R"
469 Content-Transfer-Encoding: base64
470 X-User-Comment: Please don't use browser specific HTML code
472 which should overwrite the program reasonable defaults (plain/text,
475 11.8 url-specific options
477 Provide a way to make options bound to a specific URL among several on the
478 command line. Possibly by letting ':' separate options between URLs,
481 curl --data foo --url url.com : \
483 --url url3.com --data foo3
485 (More details: http://curl.haxx.se/mail/archive-2004-07/0133.html)
487 The example would do a POST-GET-POST combination on a single command line.
489 11.9 metalink support
491 Add metalink support to curl (http://www.metalinker.org/). This is most useful
492 with simultaneous parallel transfers (11.6) but not necessary.
494 11.10 warning when setting an option
496 Display a warning when libcurl returns an error when setting an option.
497 This can be useful to tell when support for a particular feature hasn't been
498 compiled into the library.
504 Consider extending 'roffit' to produce decent ASCII output, and use that
505 instead of (g)nroff when building src/hugehelp.c
511 Make our own version of stunnel for simple port forwarding to enable HTTPS
512 and FTP-SSL tests without the stunnel dependency, and it could allow us to
513 provide test tools built with either OpenSSL or GnuTLS
515 13.2 nicer lacking perl message
517 If perl wasn't found by the configure script, don't attempt to run the tests
518 but explain something nice why it doesn't.
520 13.3 more protocols supported
522 Extend the test suite to include more protocols. The telnet could just do ftp
523 or http operations (for which we have test servers).
525 13.4 more platforms supported
527 Make the test suite work on more platforms. OpenBSD and Mac OS. Remove
528 fork()s and it should become even more portable.
532 14.1 http-style HEAD output for ftp
534 #undef CURL_FTP_HTTPSTYLE_HEAD in lib/ftp.c to remove the HTTP-style headers
535 from being output in NOBODY requests over ftp
537 14.2 combine error codes
539 Combine some of the error codes to remove duplicates. The original
540 numbering should not be changed, and the old identifiers would be
541 macroed to the new ones in an CURL_NO_OLDIES section to help with
542 backward compatibility.
544 Candidates for removal and their replacements:
546 CURLE_FILE_COULDNT_READ_FILE => CURLE_REMOTE_FILE_NOT_FOUND
547 CURLE_FTP_COULDNT_RETR_FILE => CURLE_REMOTE_FILE_NOT_FOUND
548 CURLE_FTP_COULDNT_USE_REST => CURLE_RANGE_ERROR
549 CURLE_FUNCTION_NOT_FOUND => CURLE_FAILED_INIT
550 CURLE_LDAP_INVALID_URL => CURLE_URL_MALFORMAT
551 CURLE_TFTP_NOSUCHUSER => CURLE_TFTP_ILLEGAL
552 CURLE_TFTP_NOTFOUND => CURLE_REMOTE_FILE_NOT_FOUND
553 CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED
555 14.3 extend CURLOPT_SOCKOPTFUNCTION prototype
557 The current prototype only provides 'purpose' that tells what the
558 connection/socket is for, but not any protocol or similar. It makes it hard
559 for applications to differentiate on TCP vs UDP and even HTTP vs FTP and
562 15. Next major release
564 15.1 cleanup return codes
566 curl_easy_cleanup() returns void, but curl_multi_cleanup() returns a
567 CURLMcode. These should be changed to be the same.
569 15.2 remove obsolete defines
571 remove obsolete defines from curl/curl.h
575 make several functions use size_t instead of int in their APIs
577 15.4 remove several functions
579 remove the following functions from the public API:
583 curl_mprintf (and variations)
589 They will instead become curlx_ - alternatives. That makes the curl app
590 still capable of building with them from source.
592 15.5 remove CURLOPT_FAILONERROR
594 Remove support for CURLOPT_FAILONERROR, it has gotten too kludgy and weird
595 internally. Let the app judge success or not for itself.
597 15.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
599 Remove support for a global DNS cache. Anything global is silly, and we
600 already offer the share interface for the same functionality but done