Raj,

Please note that HttpClient simply makes use of JSSE and does not attempt to provide 
any sort of transport security by itself. As far as HttpClient is concerned SSL is 
just a transport layer which is supposed to be completely transparent to HttpClient. 
I'll do my best to help you out, but please note this problem is VERY, VERY unlikely 
to be caused by HttpClient in the first place. First and foremost you need to ensure 
that JSSE is properly configured and is capable of communication with the target 
server.

Did you try the SSL test described in the troubleshooting section of the SSL guide 
<http://jakarta.apache.org/commons/httpclient/sslguide.html>? If not, please do so and 
let us know the result.

Oleg

-----Original Message-----
From: Raj, Bhalla [mailto:[EMAIL PROTECTED]
Sent: Monday, April 19, 2004 16:25
To: Commons HttpClient Project
Subject: RE: HttpClient for Https gives Unrecognized SSL message..


Hi Oleg,

Thanks for your response.

I am using from browser to connect to test this.
https://<URL>?method=book_hotel&xml

and i get certificate to accept from browser and after accepting the
certificate
 i get proper XML response from server.

But when i do this from java client i get following error as mentioned

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)

So i assume SSL is properly installed on server.

Pleas help.Another way to debug this.

Thanks
Raj

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, April 19, 2004 3:50 PM
To: Commons HttpClient Project
Subject: RE: HttpClient for Https gives Unrecognized SSL message..


Raj,
Are you sure that SSL is configured on the server side? "Unrecognized SSL
message, plaintext connection?" exception is usually thrown when an attempt
is made to connect SSLSocket to a plain HTTP port

Oleg


>-- Original Message --
>Reply-To: "Commons HttpClient Project"
<[EMAIL PROTECTED]>
>From: "Raj, Bhalla" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: HttpClient for Https gives Unrecognized SSL message..
>Date: Mon, 19 Apr 2004 15:11:52 +0530
>
>
>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(Http
C
>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(HttpC
o
>nnection.java:782)
>        at
>org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.ja
v
>a:2173)
>        at
>org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.
j
>ava:2528)
>        at
>org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:10
6
>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(Simp
l
>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]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***************************************************************************************************
The information in this email is confidential and may be legally privileged.  Access 
to this email by anyone other than the intended addressee is unauthorized.  If you are 
not the intended recipient of this message, any review, disclosure, copying, 
distribution, retention, or any action taken or omitted to be taken in reliance on it 
is prohibited and may be unlawful.  If you are not the intended recipient, please 
reply to or forward a copy of this message to the sender and delete the message, any 
attachments, and any copies thereof from your system.
***************************************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to