It's not a secret anymore!
The moose likes Sockets and Internet Protocols and the fly likes No subject alternative Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark " No subject alternative" Watch " No subject alternative" New topic
Author No subject alternative

amit sel

Joined: Sep 26, 2013
Posts: 1
I am trying to open one htttps website. Url is for ex. https://10.100.908.000/. I have written the blow code.

String url = "";

URL obj = new URL(url);

HttpURLConnection con = (HttpURLConnection) obj.openConnection();

// optional default is GET

//add request header
con.setRequestProperty("User-Agent", USER_AGENT);

But its throwing the exception " No subject alternative" . I am new to Java.
Can anyone help me how to resolve the above issue.

subject: No subject alternative
It's not a secret anymore!