3
Changes since Release 2.0.1
5
* ContentLengthInputStream no longer supports mark() & reset() methods.
7
* 21329 - Added input buffering to improve performance
11
Changes since Release 2.0
13
* 30175 - Fixed StringIndexOutOfBoundsException in StatusLine
15
* 29897 - Connection output buffer is set to a value not greater than 2k
17
* 29549 - Split wire log into header and body parts
19
* 29377 - Cookies with names containing blanks or starting with $ rejected by RFC2109
22
* 29265 - HttpConnection.isOpen() no longer logs closed connections as stale.
24
* 28728 - HttpUrl now accepts unescaped passwords
26
* 28626 - Fixed ArrayIndexOutOfBoundsException in HttpStatus.getStatusText()
28
* 27589 - Added MultiThreadedHttpConnectionManager shutdown() and shutdownAll().
30
* HttpMethod#recycle() has been deprecated.
34
Changes since Release Candidate 3:
36
* 26500 - Socket timeout is now correctly set on open connections
38
* 26328 - Fixed getScheme() and getPort() returning wrong defaults for HttpsURL
40
* 26139 - Fixed possible connection leak caused by lack of equals() and hashCode() on protocol
43
* 26688 - Fixed the problem with HttpURL creating wrong authority String when user info is changed
45
Release 2.0 Release Candidate 3
47
Changes since Release Candidate 2:
49
* HTTP status line parser changed to be more robust when dealing with non-compliant
50
HTTP responses (leading blanks before 'HTTP' signature).
52
* Fixed NPE in HttpMethodBase#responseBodyConsumed().
54
* 24309 - Changed MultiThreadedHttpConnectionManager to move to a single connection
55
GC thread. Fixed memory and thread leaks.
57
* 24327 - Fixed a bug where HttpClient did not reset the 'force-close connection'
58
flag, when an HTTP method was automatically retried (for instance, when automatically
59
handling an authentication challenge).
61
* 24352 - Fixed the bug causing basic authentication via NLTM Proxy to fail.
63
* 25370 - Connections are now closed and released automatically when an unrecoverable
64
exception occurs in HttpMethodBase.processRequest().
66
* 23866 - Fixed possible uncaught IllegalArgumentException in Cookie parsing.
68
* 25264 - Added support for cookies with a domain attribute '.domain.com' issued by
69
host 'domain.com' in the browser compatibility mode. Even though the cookie violates
70
RFC 2109 it still gets accepted by mainstream browsers (tested with Mozilla Firebird and IE).
72
* 24869 - Changed DigestScheme to only accept a challenge if all fields required
73
by RFC 2617 are present.
75
* 24671 - Added ISO-8859-1 support for digest authentication passwords, and basic authentication
76
user names and passwords.
78
* Javadoc enhancements.
80
Release 2.0 Release Candidate 2
82
Changes since Release Candidate 1:
84
* 23708 - Added try/catch blocks around calls to System.getProperty().
86
* 23431 - Added support for disabling transfer-encoding and content-type headers in
89
* 23663 - Changed HttpMethodBase to release its HttpConnection when a recoverable
92
* Javadoc enhancements.
94
* 23284 - Fixed bug with URI.isIPv4address().
96
* 22969 - PostMethod#setParameter fixed to correctly overwrite existing parameters.
98
* 22970 - Fixed bug with PostMethod#removeParameter return value.
100
* Improved compliance to RFC 2617
102
* 22926 - Added support for digest auth MD5-sess.
104
* 22655 - Added support for stale digest nonce values.
106
* 22968 - HttpConnection.isResponseAvailable() made a little more robust, particularly when
109
* 22941 - Switched the order in which socket streams are closed: output stream closed first,
110
followed by input stream.
112
* Added debugging for connection reclaiming.
114
* Removed JCE initialization code specific to the Sun's implementation.
116
* Fixed problem of Basic, Digest & NTLM authentication schemes under certain circumstances
117
leaking passwords in clear text to the DEBUG log.
119
* Fixed the problem with incorrect selection of the proxy authentication realm.
121
* Changed URI.normalize() to ignore relative path normalization.
123
Release 2.0 Release Candidate 1
125
Changes since Release 2.0 Beta 2:
127
* Option to disable 'stale' connection check that may lead to a slight
128
performance improvement at the cost of reduced reliability
130
* Improved debug logging in multi-threaded connection manager
132
* URI.normalize() no longer has an effect on relative URIs.
134
* 21532 - Removed use of sun.* class in URI.java
136
* 20481 - Changed query param encoding to UTF-8.
138
* 21378 - Multiple transfer encoding headers are now handled properly. Non chunked transfer
139
encodings are now handled correctly.
143
Changes since Release 2.0 Beta 1:
145
* 20240 - Cookies with null path are no longer rejected in the
146
browser compatibility mode.
148
* 20481 - Query parameters set via HttpMethodBase.setQueryString(NameValuePair[])
149
now correctly use 'application/x-www-form-urlencoded' encoding.
151
* 20481 - POST method correctly applies 'application/x-www-form-urlencoded'
154
* 20569 - Duplicate connection headers are now handled.
156
* 20646 - Fixed NTLM proxy authentication via SSL.
158
* 20665 - Changed URI to correctly handle path resolution according to
159
http://www.apache.org/~fielding/uri/rev-2002/issues.html. In
160
particular dot-segments are removed when not necessary.
162
* 20938 - Connections are now closed when the request is missing a content
163
length and is not chunked.
165
* 20942 - Requests with DIGEST authentication are now correctly handled
168
* 21130 - DEFAULT_MAX_HOST_CONNECTIONS and DEFAULT_MAX_TOTAL_CONNECTIONS are
169
now public in MultiThreadedHttpConnectionManager.
171
* 21201 - URIs are now correctly rebuilt following a call to URI.normalize().
173
* 21202 - WireLogInputStream.read(byte[]) now logs the correct number of bytes.
175
* Fixed path parsing in RFC2109 cookie spec.
177
* Fixed possible NPE when reading an empty response body.
179
* The various to*Charset() methods of URIUtil have been deprecated.
183
Changes since Release 2.0 Alpha 3:
185
* Changed HttpConnection to use socket timeout instead of busy
186
waiting while expecting input.
188
* Added a getResponseContentLength() method to HttpMethod.
190
* Changed HttpClient to accept correctly encoded URLs instead of
191
attempting to encode them within HttpClient.
193
* 'Expect: 100-continue' logic factored out into an abstract
194
ExpectContinueMethod class
196
* 'Expect: 100-Continue' handshake disabled per default, as it may not work
197
properly with older HTTP/1.0 servers or proxies.
199
* Reengineered authentication code. This includes a fix for
200
HttpClient continually attempting to authenticate to digest realms and
201
provides for better future extensibility.
203
* Authenticator class deprecated
205
* Improved user documentation and example code.
207
* Added ability to differentiate between different hosts using the
210
* Added support for specifying a virtual host name to use.
212
* Fixed problem with half-closed connections causing a
213
HttpRecoverableException to be thrown when HttpClient attempts to read
216
* Improved reliability with the HEAD method and servers that
217
incorrectly include a response body.
219
* Improved support for connection keep-alive when communicating via a proxy
221
* Added an override of HttpClient.executeMethod that lets the
222
caller specify an HttpState object.
224
* HttpConnectionManager is now a property of the HttpClient class,
225
not of the HttpState class
227
* Added ability to specify the local address that HttpClient should
228
create connections from.
233
Changes since Release 2.0 Alpha 2:
235
* Abstract EntityEnclosingMethod class has been introduced to encapsulate
236
common behaviour of all entity enclosing methods
238
* "Expect: 100-continue" handshake support added for POST, PUT & multipart POST
240
* Added support for chunked requests for POST and PUT.
242
* Added support for 303 See Other redirections.
244
* Changed input and output streams to use buffering to improve performance.
246
* Improved handling of multivalue headers. Order is now preserved and
247
convenience methods have been added to access each value.
249
* In non-strict mode each cookie sent with the request is put on a separate
250
request header. In strict mode all cookies are crammed into one request header,
253
* ResponseInputStream class deprecated.
255
* RequestOutputStream class deprecated.
257
* Custom character set can be specified for all multipart classes.
259
* Custom content type can be specified for FilePart derived multipart classes.
261
* The useDisk methods in GetMethod class deprecated.
266
Changes since Release 2.0 Alpha 1:
270
* Digest authentication. NTLM authentication.
274
* Added a StatusLine class to manage the status line of a
277
* Added ability to cusomize SocketFactory for http and https.
278
New Protocol class to allow for more protocols than just http/s.
280
* Removed the HttpMultiClient, added multi-thread support to
283
* Revamp the streaming policy. Added AutoCloseInputStream,
284
ChunkedInputStream, ChunkedOutputStream, ContentLengthInputStream,
285
ResponseConsumedWatcher
287
* Commons Logging. Dependancy on the commons-logging.jar
289
* Added httpclient.util package. Move Base64 and URIUtil classs
292
* Added a HttpURLConnection wrapper. Allows for wrapping
293
HttpClient into the java standard library. Partial support only.
295
* Added httpclient.cookie package. Complete overhaul of cookie
296
handling. Allows for user specified CookiePolicy and
297
various cookie specification classes.
299
* Removed previously deprecated Cookie.createCookieHeader(String,
300
String,boolean,Cookie[]) method (port number is required for
301
future compatibility).
303
* Also removed Cookie.createCookieHeader(String,String,Cookie[])
304
method, which should have been deprecated (port number is
305
required for future compatibility)
307
* Renamed HttpMethod.followRedirects to getFollowRedirects,
308
for consistency (and made the corresponding change to