Method to open and return connection: ... HttpURLConnection createHttpsConnection(HttpURLConnection connection, String address) throws IOException {
URL url = new URL(address); connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setDoInput(true); connection.setUseCaches(false); return connection; } To write to socket: ... writeOutXMLData(HttpURLConnection connection, String str) throws IOException { OutputStream out = connection.getOutputStream(); out.write(str.getBytes()); out.close(); } --- "Raghupathy, Gurumoorthy" <[EMAIL PROTECTED]> wrote: > Hey can you send me the code which opens the remote https URL ? please ? > > regards > guru > > -----Original Message----- > From: Maya Vayner [mailto:[EMAIL PROTECTED]] > Sent: 14 August 2002 16:00 > To: [EMAIL PROTECTED] > Subject: Re: java.net.SocketException: SSL implementation not available > > > Guru, > Thank you very much, I've resolved this issue: > it was the java.security file configuration problem (SSL provider missing in > the list). > Thank you. > --- "Raghupathy, Gurumoorthy" <[EMAIL PROTECTED]> > wrote: > > Which class are you using ? HttpURLConnection or HttpsURLConnection ? > > If you are using the first one to open a https site then you wont be able > to > > do that .... > > you need to use HttpsURLConnection and get the data from a specified URL > > > > Regards > > guru > > > > > > -----Original Message----- > > From: Maya Vayner [mailto:[EMAIL PROTECTED]] > > Sent: 14 August 2002 15:26 > > To: [EMAIL PROTECTED] > > Subject: java.net.SocketException: SSL implementation not available > > > > > > Hi guys, > > I am testing an application on my machine, in Tomcat 4.0.1. It is running > at > > url > > http://localhost/myappname. > > From that application I am opening a connection to some https url address, > > writing > > an xml > > request to it and receiving back xml results. > > Why would I receive this exception when trying to > > myHttpURLConnectionObject.getOutputStream()? > > > > java.net.SocketException: SSL implementation not available > > > > So far I've searched on the web and found that one problem may be a > missing > > .keystore > > file, so I've used keytool to make it and placed it under C:\Documents And > > Settings\MyUserName > > But the exception still comes up. > > What could be a problem? > > Thank you very much for help in advance. > > > > __________________________________________________ > > Do You Yahoo!? > > HotJobs - Search Thousands of New Jobs > > http://www.hotjobs.com > > > > > ___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > > ___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > > __________________________________________________ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html