Subversion Repositories SmartDukaan

Rev

Rev 13091 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13091 Rev 13201
Line 95... Line 95...
95
		 * JAVA 1.4 to return instances of javax.net.ssl.HttpsURLConnection.
95
		 * JAVA 1.4 to return instances of javax.net.ssl.HttpsURLConnection.
96
		 * However, it appears, that to allow clients with JDK 1.4 and earlier,
96
		 * However, it appears, that to allow clients with JDK 1.4 and earlier,
97
		 * HDFC favours the use of the deprecated class.
97
		 * HDFC favours the use of the deprecated class.
98
		 */
98
		 */
99
	    System.setProperty("https.protocols", "TLSv1");
99
	    System.setProperty("https.protocols", "TLSv1");
100
	    
-
 
-
 
100
	    System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");	  	    
101
	    try {
101
	    try {
102
		    // URL of CGI-Bin script.
102
		    // URL of CGI-Bin script.
103
			url = new URL("https://api.secure.ebs.in/api/1_0");
103
			url = new URL("https://api.secure.ebs.in/api/1_0");
104
		    // URL connection channel.
104
		    // URL connection channel.
105
		    urlConn = url.openConnection();
105
		    urlConn = url.openConnection();