Comment on Tutorial - java.io.IOException: HTTPS hostname wrong: should be By Ramlak



Comment Added by : java

Comment Added at : 2012-08-22 09:39:57

Comment on Tutorial : java.io.IOException: HTTPS hostname wrong: should be By Ramlak
had the sample problem.. java.io.IOException: HTTPS hostname wrong: should be <server_ip>
Used following code as specified in the post .. & it worked

HostnameVerifier hv = new HostnameVerifier() {
public boolean verify(String urlHostName, SSLSession session) {
System.out.println("Warning: URL Host: " + urlHostName
+ " vs. " + session.getPeerHost());
return true;
}
};
HttpsURLConnection.setDefaultHostnameVerifier(hv);

Thanks.


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. while i am executing this program i am getting Nul
View Tutorial          By: Seema at 2013-11-26 18:39:15

2. Very nice tutorial. Hi Rintu for attachment u can
View Tutorial          By: ras at 2013-03-14 17:19:47

3. HI Friends,

I am new to java and i

View Tutorial          By: Srini at 2015-04-05 17:00:58

4. As C does not support Function Overloading, there
View Tutorial          By: N at 2013-03-06 00:27:14

5. EJB's can be deployed on multiple servers and when
View Tutorial          By: Tomek at 2011-09-12 12:29:07

6. when i copy paste your program or source code

View Tutorial          By: Zordan at 2011-03-17 04:28:08

7. guys you both are correct
but,java is impli

View Tutorial          By: vijay at 2011-09-08 12:12:48

8. sir, i need java code to display position and velo
View Tutorial          By: Sandhya Yadav at 2015-08-20 07:16:04

9. Hi,

I tried this script with noki

View Tutorial          By: sravan at 2009-07-11 11:17:45

10. Thanks dear
View Tutorial          By: Muthin at 2009-04-29 00:32:24