It is currently Fri May 18, 2012 3:47 pm


Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: Connecting to an Https Server
PostPosted: Sun Oct 26, 2008 3:14 pm 

Joined: Fri Oct 24, 2008 2:14 pm
Posts: 14
Hi All

I have a problem connecting to an Https server from a servlet
The code that I use is as follows

URL url=new URL("https://.......");
HttpsURLConnection connection=(HttpsURLConnection)url.openConnection();

InputStream is=connection.getInputStream();

The Problem is that when I try to get the input stream I get an exception that the certificate chain of the server is not valid
now I know that in the browser I just have to click ok on the pop up window that appears when the certificate is not valid but how can I simulate the same behavior programaticaly? :geek:


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Registered users: h5orkaba8, impamiSmevy, MoseJalkelams, MSN [Bot], seerterne


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
twilightBB Style by Daniel St. Jules of Gamexe.net

[
SEO MOD © 2007 StarTrekGuide ]