Java: What is the purpose of setDoInput in URLConnection

Teererai Marange picture Teererai Marange · Jul 4, 2012 · Viewed 12.8k times · Source

Possible Duplicate:
Java HttpURLConnection

Would this method be used for example if I want to read the response to a POST method call from the server I am connected to?

Answer

user207421 picture user207421 · Jul 4, 2012

I've never encountered a case for setting it false. You always want to read something, at least the response code.