HTTPClient supports HTTPS but not in its default
distribution. You have to get a source distribution and
patch it
(http://www.innovation.ch/java/HTTPClient/https.html)
to use JSSE (since it is designed for use with a 1.3
runtime which doesnt ship with JSSE).
It would be good if HTTPPoll supported HTTPS out of the
box, since it already requires a 1.4 runtime. From what I
can tell, all that is required is:
- Use a patched HTTPClient
- Allow the target xml element to have an optional
protocol element with allowed values http|https
- Allow the Target class to be configured with this
protocol value, http being the default if none is supplied
- change the construction of the HTTPConnection in the
Target class to be
new HTTPConnection(protocol,urlString, port);
Logged In: YES
user_id=433600
Now that I look at it I'm not sure which HTTPClient you are
using. The readme file in the jar in the CVS refers to
http://www.innovation.ch/java/HTTPClient/ which appears to
be very old. The manual
(http://httppoll.sourceforge.net/docs/manual/) refers the the
jakarta commons subproject
http://jakarta.apache.org/commons/httpclient/index.html,
which as far as I can tell does not relate the
www.innovation.ch one.
Which one is it?