Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34767
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: SSL anomalies |
| Date | 2016-07-06 22:42 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nlkfin$6ls$1@gioia.aioe.org> (permalink) |
| References | <pi1nnblbhka12mc73meto1mn7jqqigs31u@4ax.com> <nlho7o$a4s$1@gioia.aioe.org> <g5vonb14ju6n37e2p30kfadk21cvraaco7@4ax.com> |
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
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