Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > https pure java

Reply
Thread Tools

https pure java

 
 
DrChaos
Guest
Posts: n/a
 
      10-13-2006
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

 
Reply With Quote
 
 
 
 
Daniel Dyer
Guest
Posts: n/a
 
      10-13-2006
On Sat, 14 Oct 2006 00:08:02 +0100, DrChaos <> wrote:

> 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-httpc...lternativeJSSE

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.

--
Daniel Dyer
http://www.uncommons.org
 
Reply With Quote
 
 
 
 
Tom Forsmo
Guest
Posts: n/a
 
      10-15-2006

DrChaos wrote:
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
server side redirect https => https NOT working Axel ASP General 8 04-27-2009 02:02 AM
Pure space directly inside div ignored, but pure space directlyinside span honored liketofindoutwhy@gmail.com HTML 4 03-29-2008 06:06 PM
Pure functions still pure after definition Todd Aspeotis C++ 3 05-30-2005 03:53 AM
Re: Pure Python HTTPS Server Trevor Perrin Python 12 03-02-2004 12:57 AM
Pure Python HTTPS Server Mikey At Work Python 10 02-29-2004 09:45 AM



Advertisments