https pure java

D

DrChaos

Hi, I'm looking for a compact "pure java" https handler... like a
wrapper for HTTPClient.

Basically, from a client ap, it needs to be able to pull data from https
sites.

Sun's JSSE packages Are over .5 megs
This is a little big for a distribution....
Anyone found/made a good java package to do this?

I have seen a few out there but they all use custom packages... not pure
java.

-Jim
(e-mail address removed)
 
D

Daniel Dyer

Hi, I'm looking for a compact "pure java" https handler... like a
wrapper for HTTPClient.

Basically, from a client ap, it needs to be able to pull data from https
sites.

Sun's JSSE packages Are over .5 megs
This is a little big for a distribution....
Anyone found/made a good java package to do this?

I have seen a few out there but they all use custom packages... not pure
java.

http://wiki.apache.org/jakarta-httpclient/AlternativeJSSE

JSSE has been a core package for about 5 years. So, unless you need to
support really old runtimes, it's available by default.

Dan.
 
T

Tom Forsmo

DrChaos said:
Hi, I'm looking for a compact "pure java" https handler... like a
wrapper for HTTPClient.

Basically, from a client ap, it needs to be able to pull data from https
sites.

You can use the URL class in the java.net package, it supports different
protocols, including http, https, ftp and other.

The key is to initialise it with the url and then call the openStream()
method, which talks to the server and provides you with an InputStream
to retrieve the result from. Mind you this method only supports GET
requests. If you want support for POST requests you have to use the
URLConnection class instead.

tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top