Hi Roland, On running the application in following debug mode
" java -Djavax.net.debug=ssl:record:plaintext <> " I get following trace... trigger seeding of SecureRandom done seeding SecureRandom setSoTimeout(0) called %% No cached client session *** ClientHello, TLSv1 RandomCookie: GMT: 1065530581 bytes = { 137, 237, 237, 163, 138, 142, 204, 228, 215, 194, 52, 132, 33, 20, 150, 151, 239, 77, 221, 233, 22, 251, 64, 64, 112, 195, 39, 164 } Session ID: {} Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA] Compression Methods: { 0 } *** Thread-10, WRITE: TLSv1 Handshake, length = 59 Thread-10, WRITE: SSLv2 client hello message, length = 77 Thread-10, handling exception: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? Thread-10, SEND TLSv1 ALERT: fatal, description = unexpected_message Thread-10, WRITE: TLSv1 Alert, length = 2 Thread-10, called closeSocket() Thread-10, called close() Thread-10, called closeInternal(true) Thread-10, called close() Thread-10, called closeInternal(true) Thread-10, called close() Thread-10, called closeInternal(true) Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.InputRecord.b(DashoA6275) at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpC onnection.java:1347) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:69) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:127) at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpCo nnection.java:782) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.jav a:2173) at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.j ava:2528) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:106 5) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:638) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:500) ... 2 more Thanks Raj -----Original Message----- From: Roland Weber [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 4:11 PM To: Commons HttpClient Project Subject: Re: HttpClient for Https gives Unrecognized SSL message.. Hello Raj, could you post a code example? I am a bit confused about the "https for the same link" part. The protocol is usually part of the link. If you managed to convice HttpClient to use SSL, while the server still believes it is plain HTTP, that would explain the error message. cheers, Roland "Raj, Bhalla" <[EMAIL PROTECTED]> 19.04.2004 11:41 Please respond to "Commons HttpClient Project" To: [EMAIL PROTECTED] cc: Subject: HttpClient for Https gives Unrecognized SSL message.. Hi , Please Help. I am using HttpClient and i am able to successfully send http request and receive response. But when i try to send "https" request for the same link i get the following error(I am able to successfully send https request and response through the browser. ). javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.InputRecord.b(DashoA6275) at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpC onnection.java:1347) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:69) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:127) at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpCo nnection.java:782) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.jav a:2173) at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.j ava:2528) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:106 5) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:638) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:500) at com.travelocity.component.net.http.SimpleHttpConnectionManager.execute(Simpl eHttpConnectionManager.java:68) I have tried the steps mentioned in SSL guide: <http://jakarta.apache.org/commons/httpclient/sslguide.html> with no luck.Can this happen if the certificate is not trusted . My jdk version is 1.4 and Please suggest steps to debug and bring it running. Any help would be highly appreciated. Thanks Raj --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]