blob: 041a3ee6e43be771972973e4cb19565334dacf44 [file] [log] [blame]
Daniel Stenberg7c37c6a2000-05-22 17:35:35 +00001 _ _ ____ _
2 ___| | | | _ \| |
3 / __| | | | |_) | |
4 | (__| |_| | _ <| |___
5 \___|\___/|_| \_\_____|
6
7TODO
8
Daniel Stenberg9d68fde2002-08-14 23:35:19 +00009 Things to do in project cURL. Please tell us what you think, contribute and
10 send us patches that improve things! Also check the http://curl.haxx.se/dev
11 web section for various technical development notes.
Daniel Stenberg7c37c6a2000-05-22 17:35:35 +000012
Daniel Stenberg3660f672003-08-11 16:17:51 +000013 All bugs documented in the KNOWN_BUGS document are subject for fixing!
14
Daniel Stenberge60e7412001-11-02 12:51:18 +000015 LIBCURL
Daniel Stenberg6704d442001-08-22 11:22:43 +000016
Daniel Stenberg9d68fde2002-08-14 23:35:19 +000017 * Introduce an interface to libcurl that allows applications to easier get to
18 know what cookies that are received. Pushing interface that calls a
19 callback on each received cookie? Querying interface that asks about
Daniel Stenbergeb6a14f2003-01-07 07:54:14 +000020 existing cookies? We probably need both. Enable applications to modify
Daniel Stenberg1a393f52003-06-26 11:38:53 +000021 existing cookies as well. http://curl.haxx.se/dev/COOKIES
Daniel Stenberg2c39a432001-07-02 08:21:25 +000022
Daniel Stenberg2d503912001-06-19 09:12:27 +000023 * Introduce another callback interface for upload/download that makes one
24 less copy of data and thus a faster operation.
Daniel Stenberge60e7412001-11-02 12:51:18 +000025 [http://curl.haxx.se/dev/no_copy_callbacks.txt]
26
Daniel Stenberg3660f672003-08-11 16:17:51 +000027 * More data sharing. curl_share_* functions already exist and work, and they
Daniel Stenberg097938e2004-03-01 09:08:52 +000028 can be extended to share more. For example, enable sharing of the ares
29 channel.
30
31 * Introduce a new error code indicating authentication problems (for proxy
32 CONNECT error 407 for example). This cannot be an error code, we must not
33 return informational stuff as errors, consider a new info returned by
34 curl_easy_getinfo() #845941
Daniel Stenberg01cfe672002-01-18 12:48:36 +000035
Daniel Stenberg7cb10a12004-03-02 10:08:04 +000036 * Option to set the SO_KEEPALIVE socket option to make libcurl notice and
37 disconnect very long time idle connections.
Daniel Stenberg558d12d2001-12-17 10:32:10 +000038
Daniel Stenberg87c43512002-08-26 22:32:46 +000039 LIBCURL - multi interface
40
Daniel Stenberg3660f672003-08-11 16:17:51 +000041 * Add curl_multi_timeout() to make libcurl's ares-functionality better.
42
Daniel Stenberg87c43512002-08-26 22:32:46 +000043 * Make sure we don't ever loop because of non-blocking sockets return
Daniel Stenberg065b87e2003-02-24 18:14:48 +000044 EWOULDBLOCK or similar. This FTP command sending, the SSL connection etc.
Daniel Stenberg87c43512002-08-26 22:32:46 +000045
Daniel Stenberg065b87e2003-02-24 18:14:48 +000046 * Make transfers treated more carefully. We need a way to tell libcurl we
47 have data to write, as the current system expects us to upload data each
48 time the socket is writable and there is no way to say that we want to
49 upload data soon just not right now, without that aborting the upload. The
50 opposite situation should be possible as well, that we tell libcurl we're
51 ready to accept read data. Today libcurl feeds the data as soon as it is
52 available for reading, no matter what.
Daniel Stenberg87c43512002-08-26 22:32:46 +000053
Daniel Stenberge60e7412001-11-02 12:51:18 +000054 DOCUMENTATION
55
Daniel Stenberg87c43512002-08-26 22:32:46 +000056 * More and better
Daniel Stenberge60e7412001-11-02 12:51:18 +000057
58 FTP
59
Daniel Stenberg84ec4062004-08-13 12:06:30 +000060 * "PASV IP override" - When an FTPS host is behind a NAT firewall, passive
61 mode fails. The PASV response from the host ["227 PASV Entering passive
62 mode (_ip_address_, _port_)."] contains the private network IP address of
63 the host, which since it is encrypted, cannot be modified by the firewall
64 to the public IP address. What is needed is a cURL option to override the
65 IP address passed by the host "227 PASV" response. Requested by Ed
66 Hingsbergen
67
Daniel Stenberg338c2da2004-08-09 12:39:28 +000068 * Support GSS/Kerberos 5 for ftp file transfer. This will allow user
69 authentication and file encryption. Possible libraries and example clients
70 are available from MIT or Heimdal. Requsted by Markus Moeller.
71
Daniel Stenberg3b491d02004-04-06 15:29:01 +000072 * Optimize the way libcurl uses CWD on each new request over a persistent
73 connection (on FTP) even if it doesn't have to.
74
75 * REST fix for servers not behaving well on >2GB requests. This should fail
76 if the server doesn't set the pointer to the requested index. The tricky
77 part is to figure out if the server did the right thing or not.
78
Daniel Stenberg339f84f2003-07-30 13:41:59 +000079 * Support the most common FTP proxies, Philip Newton provided a list
80 allegedly from ncftp:
81 http://curl.haxx.se/mail/archive-2003-04/0126.html
82
Daniel Stenbergc0acaa52003-04-28 17:29:32 +000083 * Make CURLOPT_FTPPORT support an additional port number on the IP/if/name,
84 like "blabla:[port]" or possibly even "blabla:[portfirst]-[portsecond]".
85
Daniel Stenbergb7567972003-05-26 08:19:06 +000086 * FTP ASCII transfers do not follow RFC959. They don't convert the data
87 accordingly.
Daniel Stenberg0058e872001-05-18 12:55:13 +000088
Daniel Stenbergeb6a14f2003-01-07 07:54:14 +000089 * Since USERPWD always override the user and password specified in URLs, we
90 might need another way to specify user+password for anonymous ftp logins.
91
Daniel Stenberg73323502004-05-05 06:11:57 +000092 * The FTP code should get a way of returning errors that is known to still
93 have the control connection alive and sound. Currently, a returned error
94 from within ftp-functions does not tell if the control connection is still
95 OK to use or not. This causes libcurl to fail to re-use connections
96 slightly too often.
97
Daniel Stenberge60e7412001-11-02 12:51:18 +000098 HTTP
Daniel Stenberg2c39a432001-07-02 08:21:25 +000099
Daniel Stenberg01cfe672002-01-18 12:48:36 +0000100 * Pipelining. Sending multiple requests before the previous one(s) are done.
101 This could possibly be implemented using the multi interface to queue
102 requests and the response data.
Daniel Stenberg7c37c6a2000-05-22 17:35:35 +0000103
Daniel Stenberge60e7412001-11-02 12:51:18 +0000104 TELNET
Daniel Stenberg7c37c6a2000-05-22 17:35:35 +0000105
Daniel Stenberg01cfe672002-01-18 12:48:36 +0000106 * Reading input (to send to the remote server) on stdin is a crappy solution
107 for library purposes. We need to invent a good way for the application to
108 be able to provide the data to send.
109
110 * Move the telnet support's network select() loop go away and merge the code
111 into the main transfer loop. Until this is done, the multi interface won't
112 work for telnet.
113
Daniel Stenberge60e7412001-11-02 12:51:18 +0000114 SSL
115
Daniel Stenberg3b491d02004-04-06 15:29:01 +0000116 * Anton Fedorov's "dumpcert" patch:
117 http://curl.haxx.se/mail/lib-2004-03/0088.html
118
119 * Evaluate/apply Gertjan van Wingerde's SSL patches:
120 http://curl.haxx.se/mail/lib-2004-03/0087.html
121
Daniel Stenberg5cffe052002-02-07 10:43:43 +0000122 * If you really want to improve the SSL situation, you should probably have a
123 look at SSL cafile loading as well - quick traces look to me like these are
124 done on every request as well, when they should only be necessary once per
125 ssl context (or once per handle). Even better would be to support the SSL
126 CAdir option - instead of loading all of the root CA certs for every
127 request, this option allows you to only read the CA chain that is actually
128 required (into the cache)...
129
Daniel Stenberg60f19262001-11-13 09:56:29 +0000130 * Add an interface to libcurl that enables "session IDs" to get
131 exported/imported. Cris Bailiff said: "OpenSSL has functions which can
132 serialise the current SSL state to a buffer of your choice, and
133 recover/reset the state from such a buffer at a later date - this is used
Daniel Stenberg01cfe672002-01-18 12:48:36 +0000134 by mod_ssl for apache to implement and SSL session ID cache". This whole
135 idea might become moot if we enable the 'data sharing' as mentioned in the
136 LIBCURL label above.
Daniel Stenberg60f19262001-11-13 09:56:29 +0000137
Daniel Stenberg5c4b4222002-02-18 10:51:28 +0000138 * OpenSSL supports a callback for customised verification of the peer
139 certificate, but this doesn't seem to be exposed in the libcurl APIs. Could
140 it be? There's so much that could be done if it were! (brought by Chris
141 Clark)
142
Daniel Stenberge60e7412001-11-02 12:51:18 +0000143 * Make curl's SSL layer option capable of using other free SSL libraries.
144 Such as the Mozilla Security Services
145 (http://www.mozilla.org/projects/security/pki/nss/) and GNUTLS
146 (http://gnutls.hellug.gr/)
147
Daniel Stenberg01cfe672002-01-18 12:48:36 +0000148 LDAP
149
150 * Look over the implementation. The looping will have to "go away" from the
151 lib/ldap.c source file and get moved to the main network code so that the
152 multi interface and friends will work for LDAP as well.
153
Daniel Stenberg3e049a92001-11-13 09:06:32 +0000154 CLIENT
Daniel Stenberge60e7412001-11-02 12:51:18 +0000155
Daniel Stenberg84ec4062004-08-13 12:06:30 +0000156 * Globbing support for -d and -F, as in 'curl -d "name=foo[0-9]" URL'.
157 Requested by Dane Jensen and others.
158
Daniel Stenberg87c43512002-08-26 22:32:46 +0000159 * Add an option that prevents cURL from overwiting existing local files. When
160 used, and there already is an existing file with the target file name
161 (either -O or -o), a number should be appended (and increased if already
162 existing). So that index.html becomes first index.html.1 and then
163 index.html.2 etc. Jeff Pohlmeyer suggested.
164
Daniel Stenberg3e049a92001-11-13 09:06:32 +0000165 * "curl ftp://site.com/*.txt"
Daniel Stenberge60e7412001-11-02 12:51:18 +0000166
Daniel Stenbergd095b202003-10-17 12:37:15 +0000167 * The client could be told to use maximum N simultaneous transfers and then
168 just make sure that happens. It should of course not make more than one
169 connection to the same remote host. This would require the client to use
170 the multi interface.
Daniel Stenbergd12fd892001-12-06 14:40:16 +0000171
Daniel Stenberg5c4b4222002-02-18 10:51:28 +0000172 * Extending the capabilities of the multipart formposting. How about leaving
173 the ';type=foo' syntax as it is and adding an extra tag (headers) which
174 works like this: curl -F "coolfiles=@fil1.txt;headers=@fil1.hdr" where
175 fil1.hdr contains extra headers like
176
177 Content-Type: text/plain; charset=KOI8-R"
178 Content-Transfer-Encoding: base64
179 X-User-Comment: Please don't use browser specific HTML code
180
181 which should overwrite the program reasonable defaults (plain/text,
182 8bit...) (Idea brough to us by kromJx)
183
Daniel Stenberg4c3a2312004-01-09 08:59:55 +0000184 * ability to specify the classic computing suffixes on the range
185 specifications. For example, to download the first 500 Kilobytes of a file,
186 be able to specify the following for the -r option: "-r 0-500K" or for the
187 first 2 Megabytes of a file: "-r 0-2M". (Mark Smith suggested)
188
Daniel Stenberg391a37e2003-12-08 13:48:23 +0000189 * --data-encode that URL encodes the data before posting
190 http://curl.haxx.se/mail/archive-2003-11/0091.html (Kevin Roth suggested)
191
Daniel Stenbergf7f6b282004-05-25 14:39:53 +0000192 * Provide a way to make options bound to a specific URL among several on the
Daniel Stenbergb5cafc02004-08-09 12:36:17 +0000193 command line. Possibly by letting ':' separate options between URLs,
194 similar to this:
Daniel Stenbergf7f6b282004-05-25 14:39:53 +0000195
Daniel Stenbergb5cafc02004-08-09 12:36:17 +0000196 curl --data foo --url url.com :
197 --url url2.com : \
Daniel Stenbergf7f6b282004-05-25 14:39:53 +0000198 --url url3.com --data foo3
199
Daniel Stenbergb5cafc02004-08-09 12:36:17 +0000200 (More details: http://curl.haxx.se/mail/archive-2004-07/0133.html)
Daniel Stenbergf7f6b282004-05-25 14:39:53 +0000201
202 The example would do a POST-GET-POST combination on a single command line.
203
Daniel Stenberg7cb10a12004-03-02 10:08:04 +0000204 BUILD
205
206 * Consider extending 'roffit' to produce decent ASCII output, and use that
207 instead of (g)nroff when building src/hugehelp.c
208
Daniel Stenberge60e7412001-11-02 12:51:18 +0000209 TEST SUITE
210
Daniel Stenberg7cb10a12004-03-02 10:08:04 +0000211 * Make the test servers able to serve multiple running test suites. Like if
212 two users run 'make test' at once.
213
214 * Make runtests.pl capable of changing port numbers for the servers. This was
215 the intention from the start, but in practise it is now hard.
216
Daniel Stenberg96b71312003-03-15 15:08:55 +0000217 * If perl wasn't found by the configure script, don't attempt to run the
218 tests but explain something nice why it doesn't.
219
Daniel Stenberge60e7412001-11-02 12:51:18 +0000220 * Extend the test suite to include more protocols. The telnet could just do
221 ftp or http operations (for which we have test servers).
222
223 * Make the test suite work on more platforms. OpenBSD and Mac OS. Remove
224 fork()s and it should become even more portable.
225
Daniel Stenberg7cb10a12004-03-02 10:08:04 +0000226 NEXT MAJOR RELEASE
Daniel Stenberg83a46382003-03-10 20:46:54 +0000227
228 * curl_easy_cleanup() returns void, but curl_multi_cleanup() returns a
229 CURLMcode. These should be changed to be the same.
230
Daniel Stenberg7cb10a12004-03-02 10:08:04 +0000231 * remove obsolete defines from curl/curl.h
232
Daniel Stenberg35840a22004-07-01 08:22:52 +0000233 * make several functions use size_t instead of int in their APIs
234
Daniel Stenberg7cb10a12004-03-02 10:08:04 +0000235 * remove the following functions from the public API:
236 curl_getenv
237 curl_mprintf (and variations)
238 curl_strequal
239 curl_strnequal
240
241 They will instead become curlx_ - alternatives. That makes the curl app
242 still capable of building with them from source.