Search code examples
javahttp-posturlconnection

Java: What is the purpose of setDoInput in URLConnection


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?


Solution

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