I think there's an easier way, but the code in Bixo's SimpleHttpFetcher has this support, and uses HttpClient 4.0

http://github.com/bixo/bixo/tree/master/src/main/java/bixo/fetcher/http/

-- Ken


On Mar 23, 2010, at 9:53am, hbfkf wrote:


Dear list,

I am trying to use HttpClient 4 to download HTTPS pages. In my application, security is not a concern and I want to download the page even if the page
is not trusted. I guess I have to do something like

 schemeRegistry.register(new Scheme("https", /* TODO */, 443));

I searched on this forum and found information on HttpClient 3 and a pointer
to the manual,

http://hc.apache.org/httpcomponents-client/tutorial/html/ connmgmt.html

However, I could see a clear route to follow. Does anybody have sample code
for this?

Best,
Kaspar
--
View this message in context: 
http://old.nabble.com/Accept-untrusted-SSL-certificates-tp28003775p28003775.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


--------------------------------------------
<http://ken-blog.krugler.org>
+1 530-265-2225






--------------------------------------------
Ken Krugler
+1 530-210-6378
http://bixolabs.com
e l a s t i c   w e b   m i n i n g





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to