title: What is the purpose of setDoInput and setDoOutput in Java HttpURLConnection?
body: <p>What is the function or purpose of <code>HttpURLConnection.setDoInput</code> and <code>HttpURLConnection.setDoOutput</code>?</p>