Easy to Learn Java: Programming Articles, Examples and Tips

Start with Java in a few days with Java Lessons or Lectures


Code Examples

Java Tools

More Java Tools!

Java Forum

All Java Tips


Submit News
Search the site here...
Search the JavaFAQ.nu
1000 Java Tips ebook

1000 Java Tips - Click here for the high resolution copy!1000 Java Tips - Click here for the high resolution copy!

Java Screensaver, take it here

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java programming articles and tips. Please take your copy here.

Take your copy of free "Java Technology Screensaver"!.

Can I use HttpURLConnection class to make HTTPS requests in java 1.2?

JavaFAQ Home » JSP, Servlets Go to all tips in JSP, Servlets

Bookmark and Share

Question: Can I use HttpURLConnection class to make HTTPS requests in java 1.2?

Answer: No, you need to use JSSE which includes HTTPS support - the ability to access data such as HTML pages using HTTPS.
Since Java 1.4 it is the part of J2SE. Just take HttpsURLConnection class.

Just for your info - Installing JSSE.

The Java 2 Standard Edition SDK 1.4 and later includes JSSE, so if you use a recent SDK version, you can move on to the Generating a Self-Signed Certificate section. For SDK versions prior to 1.4, you must download JSEE separately from http://java.sun.com/products/jsse/. Follow the instructions on Sun's site.

The JSSE JAR files can be installed as a so-called installed extension by placing them in the $JAVA_HOME/lib/ext directory (see the JSSE documentation for details), but can also be installed in any directory you like.

If you do not install them as an installed extension, you must set the JSSE_HOME environment variable to the JSSE installation directory path. On a Windows platform, use the set command like this:

C:\> set JSSE_HOME=C:\jsse1.0.3_01


 Printer Friendly Page  Printer Friendly Page
 Send to a Friend  Send to a Friend

.. Bookmark and Share

Search here again if you need more info!
Custom Search

Home Code Examples Java Forum All Java Tips Books Submit News, Code... Search... Offshore Software Tech Doodling

RSS feed Java FAQ RSS feed Java FAQ News     

    RSS feed Java Forums RSS feed Java Forums

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest 1999-2006 by Java FAQs Daily Tips.

Interactive software released under GNU GPL, Code Credits, Privacy Policy