Code example for HttpsURLConnection

Methods: getInputStream, getOutputStream, setDoInput, setDoOutput, setHostnameVerifier, setRequestMethod

0
				URL url = new URL("https://somfytahoma-test.bulogics.com/support/xml.php");
				Post_Data="<command><name>bulogics_authenticate</name><arg><username>user423@slamm.com</username><password>password123</password></arg></command>";
		    	trustAllHosts(); 
	    		HttpsURLConnection https = (HttpsURLConnection) url.openConnection();
	    		Log.d("HTTPS URL Connection---","https connection");
	    		https.setHostnameVerifier(DO_NOT_VERIFY);
	    		https.setDoInput(true);
	    		https.setDoOutput(true);
	    		https.setRequestMethod("POST");
	    		DataOutputStream dos=new DataOutputStream(https.getOutputStream());
	    		dos.write(Post_Data.getBytes());
	    		Log.d("HTTPS URL Connection####","https connection");	    		
	    		return https.getInputStream();
			}  
			catch (MalformedURLException e) 
			{ 
				e.printStackTrace();
				Log.d("MalformedURLException",""+e.toString());
			} 
			catch(IOException e)
			{