Code example for HttpsURLConnection

Methods: setDoInput, setDoOutput, setRequestMethod, setRequestProperty

0
			Cookie: CPsession=http%3A%2F%2Fwww%2Egoogle%2Ecom%2F%26ip%3D192%2E168%2E143%2E135 
			 
			BODY: 
			user=USER&password=PASSWORD&cmd=authenticate&Login=Log+In 
			*/ 
			httpsConnection.setRequestMethod("POST");
			httpsConnection.setDoInput(true);
			httpsConnection.setDoOutput(true);
			httpsConnection.setRequestProperty("Accept", "*/*");
			httpsConnection.setRequestProperty("Accept-Language", "en-gb");
			httpsConnection.setRequestProperty("Accept-Encoding", "gzip, deflate");
			httpsConnection.setRequestProperty("Host", PreferencesFacade.getLocation(context).getConnectionHostName());
			httpsConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
		} 
		catch(Exception e)
		{ 
			LogManager.LogException(e, "ConnectHelper", "openConnectionToHTTPS()");
		} 
		return httpsConnection;
	} 
	//http://androidforums.com/android-applications/60650-send-data-https-android-application.html