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



Comment Added by : Mahendra

Comment Added at : 2012-05-24 10:57:25

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

can we use only code given below :

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);


and to which function we have to pass the URL??
can u provide sample code?


View Tutorial



Subscribe to Tutorials

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. Very good examples are given by you on overloading
View Tutorial          By: Ankur Rautela at 2011-11-03 10:22:46

2. It'z to hard to study a computer programming.but i
View Tutorial          By: christine idio at 2009-10-20 02:06:58

3. I am running it within NetBeans. I set a breakpoin
View Tutorial          By: PeteC at 2014-02-22 18:57:14

4. enter no of line: 5 not fix value
out put i

View Tutorial          By: mark at 2013-01-31 14:30:00

5. Nice basics. Very helpful
View Tutorial          By: Gorav at 2011-11-11 12:46:28

6. Sir if i wnna to take the input from user then it
View Tutorial          By: Vivek at 2011-05-14 05:56:30

7. It's good but not easily understandable....
View Tutorial          By: koshal at 2010-12-19 23:32:05

8. more info needs to be given ............
View Tutorial          By: sufficient for new commer at 2008-05-09 00:41:58

9. i have connected my phone through bluetooth using
View Tutorial          By: nikitha at 2013-02-06 05:05:04

10. i have a some knowledge of java . I want some exam
View Tutorial          By: kavitha at 2012-07-30 09:07:47