Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Using java in http connection

Wed Oct 22, 2008 1:21 am

Maybe someone can help me with some java stuff.
I'm using a java application to connect to an HTTPS site. My OS is linux.
Initially i have no certificate of the server, e.q.( a machine with IP
192.168.1.2).
I want to connect to that IP using https and acquire its certificate,
and just like
web browser, I need to prompt a dialog to either accept or cancel the
certificate.

Do you have any idea how to do?



Re: Using java in http connection

Wed Oct 22, 2008 1:22 am

You can try this, http://hc.apache.org/httpclient-3.x/sslguide.html

Using predefine protocol :
org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory

Post a reply
  Related Posts  to : Using java in http connection
 How to open http connection using j2me     -  
 HTTP POST msg connection close problem     -  
 HTTP Server in Java     -  
 http proxy code     -  
 Send parameters using HTTP GET     -  
 Get value from HTTP POST VARS     -  
 Build distribution applications by remoting(TCP/HTTP)     -  
 Multipart HTTP forms submitter - With Progress Information     -  
 database connection     -  
 Connection object in jsp     -