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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. @Zero Code
@
Catch ex As Ex
View Tutorial By: Chitz at 2011-12-24 19:50:45
2. Thanks.
View Tutorial By: Joe at 2011-12-07 11:41:14
3. import java.io.*;
import java.util.*;
View Tutorial By: srikanth at 2014-05-30 06:44:58
4. Thanks to you for providing such a wonderful infor
View Tutorial By: Tara Patra at 2010-08-30 07:22:44
5. Thanks a lot for this nice tutorial, it is very he
View Tutorial By: Ted at 2014-02-07 12:50:24
6. Excellent example !!!
View Tutorial By: mah at 2010-11-27 04:06:22
7. Hi
I need a javafx code which I
1
View Tutorial By: HNO11 at 2011-03-26 08:59:03
8. yes it is good example for abstract classes.Thanks
View Tutorial By: Nilesh Chavan at 2010-07-17 02:24:42
9. Hi Rima,
Check out http://forums.su
View Tutorial By: Ramlak at 2008-12-28 03:00:01
10. Thanks for the explanation. I had read about this
View Tutorial By: Sidharth Sahoo at 2012-09-12 16:26:07