hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "crescent" <subliminalfloat...@hotmail.com>
Subject HttpClient SSL Helppppp!
Date Wed, 14 Jan 2004 01:50:06 GMT
Hi, there

While trying to use HttpClient for a SSL application, I encountered an exception, the codes
I used were as follows(the URL is made up here):

HttpClient client = new HttpClient();
 HostConfiguration config = client.getHostConfiguration();
 HttpsURL sslURL = new HttpsURL("https://sample.com/test.asp");
 PostMethod post = new PostMethod();

 String sXML = "<to>https://sample.com/test.asp</to>";
 post.setRequestHeader("Content-type", "text/xml; charset=Big");
 client.executeMethod(client.getHostConfiguration(), post);

and the exception occured was:

 javax.net.ssl.SSLHandshakeException: unknown certificate

my development environment is:

 OS : Windows 2000
 AP Server : IBM WebSphere 5
 JDK : WebSphere JDK

appreciate for any suggestions and solutions for the problem.

best regards

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message