Contents
Here is a list of bugs fixed since the last release (V0.3-1):
- Bug in cookie data parsing fixed. This could cause cookies to be
overlooked when the server sent multiple cookies with dates that
didn't contain a weekday.
- If saving of cookies was enabled and the cookie jar did not exist
then no cookies were saved (i.e. the file was not created). It
now creates the file if it doesn't exist.
- Bug in ContentEncodingModule fixed: it was trying to uncompress
partial contents (206 responses to a range request).
- Deadlock problem in timeout thread fixed. Bad ordering of lock
acquisition in the timeout thread could cause a multithreaded
app to hang.
- Fixed infinite loop in RetryModule. When a site was not sending a
full set of headers (due to a bug of theirs or a network problem)
the RetryModule would go into an infinite loop.
- AuthorizationInfo.addDigestAuthorization() now preserves any
previous info for that host/realm (such as the list of url's
which make up that authentication space).
- Empty paths (e.g. as in a "Location: http://www.cool.dom") were
not converted to "/" for the request, leading to invalid http
requests. This mostly happened when handling redirections.
A few small enhancements have been incorporated into this bug fix
too:
- HttpURLConnection makes better use of HttpOutputStream when a
Content-Length request header is set. See the updated
javadocs
for this class for an example.
- A new java system property HTTPClient.dontChunkRequests
has been added. This will prevent the client from using the
chunked transfer encoding on requests. Instead, the client will
buffer the data if necessary.
- M$ WinSock has a bug when trying to do large writes. This seems
to only be visible on JDK 1.1 (i.e. JDK 1.2 seems to work around
it). Therefore the following workaround has been added: if the
HTTPClient runs under Windoze and the JDK version 1.1(.x) then
all writes to the socket will be split into multiple writes of 20K
(or less).
- HTTPConnection now has a new method,
isCompatibleWith(URI),
to ease the job of managing a cache of HTTPConnection's.
- HTTPConnection now has a new convenience method,
dontProxyFor(String[]),
which takes a list of hosts.
- Added the HTTPClient/alt/HotJava directory and added an explanation
in Getting Started about
how to set up things to get HotJava to use the HTTPClient instead
of the default client from Sun. Also, the sun.net.ProgressEntry and
sun.net.www.MeteredStream hacks were removed from the standard
HTTPResponse and HttpURLConnection classes.
V0.3-2 should be plug-in compatible with V0.3-1. I.e. no changes to
your code are required.
Ronald Tschalär / 18. June 1999 /
ronald@innovation.ch.