Code example for HttpURLConnection

Methods: setDoInput, setDoOutput, setRequestMethod, setRequestProperty, setUseCaches