Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Open Source Projects
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Other Open Source Projects
HttpClient 3.1 over HTTPS
Neeraj Vij
Ranch Hand
Posts: 315
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello,
kindly provide some sample code for using HTTPClient 3.1 for HTTPS based urls. I am getting the following exception while executing the code over https url for ex -{https://www.*********.com}
[INFO] HttpMethodBase - Response content length is not known [INFO] HttpMethodDirector - I/O exception (java.net.SocketException) caught when processing request: SSL implementation not available [INFO] HttpMethodDirector - Retrying request [INFO] HttpMethodBase - Response content length is not known [INFO] HttpMethodDirector - I/O exception (java.net.SocketException) caught when processing request: SSL implementation not available [INFO] HttpMethodDirector - Retrying request [INFO] HttpMethodBase - Response content length is not known [INFO] HttpMethodDirector - I/O exception (java.net.SocketException) caught when processing request: SSL implementation not available [INFO] HttpMethodDirector - Retrying request [INFO] HttpMethodBase - Response content length is not known java.net.SocketException: SSL implementation not available at javax.net.ssl.DefaultSSLSocketFactory.createSocket([DashoPro-V1.2-120198]) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:160) at org.apache.commons.httpclient.HttpConnection.tunnelCreated(HttpConnection.java:786) at org.apache.commons.httpclient.HttpMethodDirector.executeConnect(HttpMethodDirector.java:514) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:391) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at test.Test.main(Test.java:38)
Thanks,
Neeraj.
Martijn Verburg
author
Posts: 3285
13
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Just Google the documentation for the 3.x HttpClient, there are several full code examples there.
Cheers, Martijn,
Twitter
.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
"Connection timed out" with HttpClient.
Webdav
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
Making a webservice call using axis2
HttpClient with a certificate
More...