Code example for HttpsURLConnection

Methods: setSSLSocketFactory

0
		realConnection.setHostnameVerifier(v);
	} 
	 
	public void setSSLSocketFactory(SSLSocketFactory sf)
	{ 
		realConnection.setSSLSocketFactory(sf);
	} 
	 
	//********************************************************** 
	 
	public void addRequestProperty(String field, String newValue)
	{ 
		realConnection.addRequestProperty(field, newValue);
	} 
	 
	public void connect() throws java.io.IOException 
	{ 
		startTimeMillis = System.currentTimeMillis();
		realConnection.connect();
	} 
Connect your IDE to all the code out there  Get Codota for Java