Code example for HttpsURLConnection

Methods: connect, setDoOutput, setRequestMethod