Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: SSL anomalies Date: Wed, 6 Jul 2016 22:42:31 -0400 Organization: Aioe.org NNTP Server Lines: 43 Message-ID: References: NNTP-Posting-Host: 7SK6yTFfqwlIPNBLl3l7Qg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:34767 On 7/5/2016 11:36 PM, Roedy Green wrote: > On Tue, 5 Jul 2016 21:51:52 -0400, Arne Vajhøj > wrote: >> All the above works perfect with latest Java 8 except https://handbrake.fr >> that throws an exception due to some certificate error. > > could I please see the code you are using? Sure. import java.net.HttpURLConnection; import java.net.URL; public class Test { public static void test(String urlstr) { try { URL url = new URL(urlstr); HttpURLConnection con = (HttpURLConnection) url.openConnection(); con.connect(); System.out.println(urlstr); System.out.println(con.getHeaderFields()); con.disconnect(); } catch (Exception e) { e.printStackTrace(); } } public static void main(String[] args) { //test("http://www.vajhoej.dk/"); test("https://www.ashampoo.com/en/cad/pin/7110/burning-software/burning-studio-free"); test("https://handbrake.fr"); test("https://www.htmlvalidator.com/download/registered.php?versionin=110"); test("https://www.meinbergglobal.com/english/sw/ntp.htm"); test("https://tortoisesvn.net"); } } Arne