Code example for HttpURLConnection

Methods: connect, getResponseCode, setRequestMethod, setRequestProperty