Code example for HttpsURLConnection

Methods: connect, setInstanceFollowRedirects, setRequestMethod, setSSLSocketFactory

0
		HttpsURLConnection con = (HttpsURLConnection)url.openConnection();
		this.setPassword();
		//con.setRequestProperty("X-Session-Id", session); - not yet used 
//		con.setRequestProperty("Accept", "application/json"); 
//		con.setRequestProperty("Content-Type", "application/json"); 
		con.setInstanceFollowRedirects(true);
		con.setSSLSocketFactory(sslContext.getSocketFactory());
		try { 
			con.setRequestMethod("GET");
		} catch (ProtocolException e) {
			// TODO Auto-generated catch block 
			Log.e(TAG,"set get methods failed");
		} 
		 
		con.connect();
		Log.e(TAG,"done : "+url.toString());
		return con;
	} 
	 
	/* (non-Javadoc) 
	 * @see tub.iosp.budcloand.framework.control.http.BCSession#getSubscribed()