I am trying to get ssl working as a client in a servlet.

The code works if ssl is not running on the webserver.  We are using
JWS 1.1.3.  I have read that there are third party classes that will
allow
servlets to make client ssl connections.

I need to stay with this configuration and I am looking for help.

This code works for ssl connections when the JWS is not running ssl
Servlet code----

URL url = new URL (imageServerProtocol,imageServerName,
                    imageServerPort,imageServerGetRequest);

URLConnection uc= url.openConnection();
uc.connect();
InputStream in = uc.getInputStream();
String mimeType = uc.getContentType();

PrintWriter printStream = output.getWriter();

BufferedInputStream inputStream = new BufferedInputStream(in );

output.setContentType("text/html");
StringBuffer _sb = new StringBuffer();
int b=-1;
while ((b=inputStream.read()) !=-1){
   _sb.append((char)b);
}
printStream.println(_sb.toString());


Thanks

___________________________________________________________________________
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

Reply via email to