Comment on Tutorial - HTTPS hostname wrong: should be By Ramlak

Comment Added by : java

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

Comment on Tutorial : HTTPS hostname wrong: should be By Ramlak
had the sample problem.. 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;


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. can u be more specific like put up some more headi
View Tutorial          By: Jass at 2012-10-29 03:51:29

2. gr8t man.....! i am satisfied with ur explanation
View Tutorial          By: raja deepa at 2011-07-05 13:44:21

3. This works great.. :)

thanks a lot

View Tutorial          By: Ravi at 2010-07-03 23:34:46

4. very easy and simple program..
need minor

View Tutorial          By: Metal at 2014-05-07 10:31:04

5. I just copied this example to my app. It's not wor
View Tutorial          By: Praveen Kumar at 2011-11-17 12:59:40

6. tis s very useful and easy to capture all persons
View Tutorial          By: Divya at 2013-12-19 05:42:32

7. Hi, thanks alot this code works for me , can someo
View Tutorial          By: ann at 2011-03-18 04:50:16

8. Following question to this topic:
- when i

View Tutorial          By: Alistair at 2012-01-14 10:59:52

9. Nice stuff u guyzz are sharing
View Tutorial          By: kunal sharma at 2013-11-19 03:45:08

10. my host is not connect to SMT
View Tutorial          By: Anbuselvam at 2012-05-04 04:52:17