Package info.informatica.www

HTTPClient This class wraps an URLConnection object with HTTP-specific methods, providing a light-weight HTTP client.

See:
          Description

Interface Summary
Hypertext Interface to be implemented by all hypertext documents.
 

Class Summary
CookieStore Poorly tested.
HTTPClient HTTP Client implementation, supporting Forms, Cookies, authentication, etc.
HTTPForm Legacy implementation of Http Form
RobotInfo Encapsulates the usual "index-follow" Robot metainformation.
UserAgent User Agent information.
WebFile WebFile is the analogous class of WebPage for simple binary files.
WebPage Abstract class that provides a TextDocument text document with the proper methods to be handled as a web page, like a base URL or a Reader-based content assignation.
 

Package info.informatica.www Description

HTTPClient

This class wraps an URLConnection object with HTTP-specific methods, providing a light-weight HTTP client.

Example of its use to read the content of an URL:

HTTPClient client = new HTTPClient();
client.setUserAgent("My client/1.0");
URLConnection ucon = client.openConnection(url);
InputStream is = ucon.getInputStream();
String retcode = client.returnCode(ucon);

HTTP Form example:

HTTPClient client = new HTTPClient();
client.setUserAgent("My client/1.0");
HTTPForm form = client.createForm();
form.setParameter("name", "John");
form.addParameter("favorite_colors", "blue");
form.addParameter("favorite_colors", "yellow");
URLConnection ucon = form.post(url);
InputStream is = ucon.getInputStream();