This package provides a complete http client library. It currently implements most of the relevant parts of the HTTP/1.0 and HTTP/1.1 protocols, including the request methods HEAD, GET, POST and PUT, and automatic handling of authorization, redirection requests, and cookies. Furthermore the included Codecs class contains coders and decoders for the base64, quoted-printable, URL-encoding, chunked and the multipart/form-data encodings. The whole thing is free, and licenced under the GNU Lesser General Public License (LGPL) (note that this is not the same as the GPL).
Following are the kits and documentation for the HTTPClient Version 0.3-3. If you have any problems, bugs, suggestions, comments, etc. see the info on debugging and reporting problems. An older version of these pages are also available in Japanese, thanks to the kindly efforts of Yuji Kumasaka.
Download package (includes full source, compiled class files and api documentation):
HTTPClient.tar.gz
(528 K)
HTTPClient.zip
(717 K)
Documentation and Information:
Getting started
Advanced Info
API Documentation
Bug fixes, Changes, and Upgrading from Version 0.3-2
A comparison of java.net.URLConnection and HTTPClient
Https (http over SSL) Support
Common Exceptions and their Causes
Notes on compiling HTTPClient classes
Emulating Form Submissions
Frequently Asked Questions
Links to some stuff which also might of interest:
Applet Network Security and Firewalls/Proxies
How to Create a Full-Duplex Channel over HTTP
How to display arbitary html from an Applet
An HTML parser
class. This is based on the parser by Arthur Van Hoff and is a true
SGML conformant parser. Since this link seems to be on blink sometimes
here is my local copy (145 K).
Another HTML parser is Arthur Do's HtmlStreamTokenizer.
You may also sign up to receive notification of new versions of the HTTPClient.