Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

https pure java

Thread view: 
DrChaos - 14 Oct 2006 00:08 GMT
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
drchaos@telus.net
Daniel Dyer - 14 Oct 2006 00:31 GMT
> Hi, I'm looking for a compact "pure java" https handler...  like a
> wrapper for HTTPClient.
[quoted text clipped - 8 lines]
> 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.

Signature

Daniel Dyer
http://www.uncommons.org

Tom Forsmo - 15 Oct 2006 02:46 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.