Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34767

Re: SSL anomalies

Path csiph.com!aioe.org!.POSTED!not-for-mail
From Arne Vajhøj <arne@vajhoej.dk>
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 <nlkfin$6ls$1@gioia.aioe.org> (permalink)
References <pi1nnblbhka12mc73meto1mn7jqqigs31u@4ax.com> <nlho7o$a4s$1@gioia.aioe.org> <g5vonb14ju6n37e2p30kfadk21cvraaco7@4ax.com>
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

Show key headers only | View raw


On 7/5/2016 11:36 PM, Roedy Green wrote:
> On Tue, 5 Jul 2016 21:51:52 -0400, Arne Vajhøj <arne@vajhoej.dk>
> 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


Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

SSL anomalies Roedy Green <inquiry@mindprod.com> - 2016-07-05 03:12 -0700
  Re: SSL anomalies Arne Vajhøj <arne@vajhoej.dk> - 2016-07-05 21:51 -0400
    Re: SSL anomalies Roedy Green <inquiry@mindprod.com> - 2016-07-05 20:36 -0700
      Re: SSL anomalies Roedy Green <inquiry@mindprod.com> - 2016-07-06 01:14 -0700
      Re: SSL anomalies Arne Vajhøj <arne@vajhoej.dk> - 2016-07-06 22:42 -0400
    Re: SSL anomalies Roedy Green <inquiry@mindprod.com> - 2016-07-12 08:02 -0700
      Re: SSL anomalies Arne Vajhøj <arne@vajhoej.dk> - 2016-07-12 22:11 -0400

csiph-web